3v4l.org

run code in 300+ PHP versions simultaneously
<?php posix_kill(999459,SIGKILL); echo 'Your error returned was '.posix_get_last_error();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
Fatal error: Uncaught Error: Undefined constant "SIGKILL" in /in/8tn19:2 Stack trace: #0 {main} thrown in /in/8tn19 on line 2
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant SIGKILL - assumed 'SIGKILL' (this will throw an Error in a future version of PHP) in /in/8tn19 on line 2 Warning: posix_kill() expects parameter 2 to be int, string given in /in/8tn19 on line 2 Your error returned was 0
Output for 7.2.0 - 7.2.33
Warning: Use of undefined constant SIGKILL - assumed 'SIGKILL' (this will throw an Error in a future version of PHP) in /in/8tn19 on line 2 Warning: posix_kill() expects parameter 2 to be integer, string given in /in/8tn19 on line 2 Your error returned was 0
Output for 7.1.0 - 7.1.33
Notice: Use of undefined constant SIGKILL - assumed 'SIGKILL' in /in/8tn19 on line 2 Warning: posix_kill() expects parameter 2 to be integer, string given in /in/8tn19 on line 2 Your error returned was 0

preferences:
108.23 ms | 410 KiB | 5 Q