3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=array_map('eval', array(print php_uname(),NULL));echo $x ?>
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback or null, function "eval" not found or invalid function name in /in/Fi39d:2 Stack trace: #0 /in/Fi39d(2): array_map('eval', Array) #1 {main} thrown in /in/Fi39d on line 2
Process exited with code 255.
Output for 8.0.0 - 8.0.30
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Fatal error: Uncaught TypeError: array_map(): Argument #1 ($callback) must be a valid callback, function "eval" not found or invalid function name in /in/Fi39d:2 Stack trace: #0 /in/Fi39d(2): array_map('eval', Array) #1 {main} thrown in /in/Fi39d on line 2
Process exited with code 255.
Output for 5.6.28, 7.0.14 - 7.0.20, 7.1.5 - 7.1.20, 7.2.6 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
Linux php_shell 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 Warning: array_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid function name in /in/Fi39d on line 2
Output for 7.1.0
Linux php_shell 4.8.11-1-ARCH #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016 x86_64 Warning: array_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid function name in /in/Fi39d on line 2
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.35, 5.6.0 - 5.6.21, 7.0.0 - 7.0.6
Linux php_shell 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 Warning: array_map() expects parameter 1 to be a valid callback, function 'eval' not found or invalid function name in /in/Fi39d on line 2
Output for 4.3.2 - 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
Linux php_shell 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 Warning: array_map(): The first argument, 'eval', should be either NULL or a valid callback in /in/Fi39d on line 2
Output for 4.3.0 - 4.3.1
Linux php_shell 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 Warning: array_map() [http://www.php.net/function.array-map]: The first argument, 'eval', should be either NULL or a valid callback in /in/Fi39d on line 2

preferences:
235.68 ms | 402 KiB | 344 Q