執行 ❯
獲取您
自己的 PHP
伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $count = 0; function example() { global $count; $count++; echo "$count instructions executed<br>"; } register_tick_function('example'); declare(ticks=1) { $cars = ["Ford", "Volvo", "BMW"]; foreach($cars as $car) { echo "$car <br>"; } } ?> </body> </html>
1 條指令已執行
福特
2 條指令已執行
沃爾沃
3 條指令已執行
寶馬
4 條指令已執行
5 條指令已執行