3v4l.org

run code in 300+ PHP versions simultaneously
<?php create_function('', '};print(php_uname());ls;{');
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Call to undefined function create_function() in /in/s5o2c:1 Stack trace: #0 {main} thrown in /in/s5o2c on line 1
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function create_function() in /in/s5o2c:1 Stack trace: #0 {main} thrown in /in/s5o2c on line 1
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Deprecated: Function create_function() is deprecated in /in/s5o2c on line 1 Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Warning: Use of undefined constant ls - assumed 'ls' (this will throw an Error in a future version of PHP) in /in/s5o2c(1) : runtime-created function on line 1
Output for 7.3.32 - 7.3.33
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Warning: Use of undefined constant ls - assumed 'ls' (this will throw an Error in a future version of PHP) in /in/s5o2c(1) : runtime-created function on line 1
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.0 - 7.1.20
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 5.5.24 - 5.5.32, 5.5.34, 5.6.8 - 5.6.18, 5.6.20 - 5.6.21, 7.0.0 - 7.0.3, 7.0.5 - 7.0.6
Linux php_shell 4.4.5-1-ARCH #1 SMP PREEMPT Thu Mar 10 07:38:19 CET 2016 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 5.5.33, 5.6.19, 7.0.4
Linux php_shell 4.4.1-2-ARCH #1 SMP PREEMPT Wed Feb 3 13:12:33 UTC 2016 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 5.5.35, 5.6.7
Linux php_shell 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 4.3.0, 5.4.39 - 5.4.45
Linux php_shell 4.1.6-1-ARCH #1 SMP PREEMPT Mon Aug 17 08:52:28 CEST 2015 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 5.4.34 - 5.4.38
Linux php_shell 3.19.0-1-ARCH #1 SMP PREEMPT Mon Feb 9 07:08:20 CET 2015 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1
Output for 4.3.1 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.32
Linux php_shell 3.8.2 #3 SMP Fri May 31 14:28:26 UTC 2013 x86_64 Notice: Use of undefined constant ls - assumed 'ls' in /in/s5o2c(1) : runtime-created function on line 1

preferences:
236.16 ms | 403 KiB | 312 Q