3v4l.org

run code in 300+ PHP versions simultaneously
<?php pcntl_signal(SIGALRM, 'var_dump'); declare(ticks=100); class Task { public static function run() { $isActive = true; while ($isActive) { usleep(0.05*1e6); // complex business logic here echo ".."; } } } Task::run();
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7, 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function pcntl_signal() in /in/0pPKt:3 Stack trace: #0 {main} thrown in /in/0pPKt on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.30
Fatal error: Call to undefined function pcntl_signal() in /in/0pPKt on line 3
Process exited with code 255.
Output for 5.3.0, 5.3.3 - 5.3.8, 5.3.10 - 5.3.16, 5.3.18, 5.3.29
..................................................................................................
Process exited with code 137.
Output for 5.3.1 - 5.3.2, 5.3.9, 5.3.17, 5.3.19 - 5.3.28
................................................................................................
Process exited with code 137.

preferences:
183.65 ms | 402 KiB | 313 Q