3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.1.0
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 hhvm-3.10.0 - 3.12.0
............................................................................................
Process exited with code 137.
Output for 5.4.0 - 5.6.28
Fatal error: Call to undefined function pcntl_signal() in /in/0pPKt on line 3
Process exited with code 255.
Output for 5.3.29
......................................................................................
Process exited with code 137.
Output for 5.3.7 - 5.3.9, 5.3.16 - 5.3.18, 5.3.20 - 5.3.21, 5.3.24, 5.3.26, 5.3.28
................................................................................................
Process exited with code 137.
Output for 5.3.10, 5.3.13, 5.3.22, 5.3.27
....................................................................................
Process exited with code 137.
Output for 5.3.11 - 5.3.12, 5.3.14 - 5.3.15, 5.3.19, 5.3.23, 5.3.25
..............................................................................................
Process exited with code 137.