3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3,4,5,6,7,8,9,10,a,b,c,d,e,f,g,h,i,j); var_dump($arr); ?>
Output for 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: Undefined constant "a" in /in/DAqUX:2 Stack trace: #0 {main} thrown in /in/DAqUX on line 2
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant c - assumed 'c' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant d - assumed 'd' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant e - assumed 'e' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant f - assumed 'f' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant g - assumed 'g' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant h - assumed 'h' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant i - assumed 'i' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 Warning: Use of undefined constant j - assumed 'j' (this will throw an Error in a future version of PHP) in /in/DAqUX on line 2 array(20) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) [6]=> int(7) [7]=> int(8) [8]=> int(9) [9]=> int(10) [10]=> string(1) "a" [11]=> string(1) "b" [12]=> string(1) "c" [13]=> string(1) "d" [14]=> string(1) "e" [15]=> string(1) "f" [16]=> string(1) "g" [17]=> string(1) "h" [18]=> string(1) "i" [19]=> string(1) "j" }
Output for 4.3.0 - 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.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Notice: Use of undefined constant a - assumed 'a' in /in/DAqUX on line 2 Notice: Use of undefined constant b - assumed 'b' in /in/DAqUX on line 2 Notice: Use of undefined constant c - assumed 'c' in /in/DAqUX on line 2 Notice: Use of undefined constant d - assumed 'd' in /in/DAqUX on line 2 Notice: Use of undefined constant e - assumed 'e' in /in/DAqUX on line 2 Notice: Use of undefined constant f - assumed 'f' in /in/DAqUX on line 2 Notice: Use of undefined constant g - assumed 'g' in /in/DAqUX on line 2 Notice: Use of undefined constant h - assumed 'h' in /in/DAqUX on line 2 Notice: Use of undefined constant i - assumed 'i' in /in/DAqUX on line 2 Notice: Use of undefined constant j - assumed 'j' in /in/DAqUX on line 2 array(20) { [0]=> int(1) [1]=> int(2) [2]=> int(3) [3]=> int(4) [4]=> int(5) [5]=> int(6) [6]=> int(7) [7]=> int(8) [8]=> int(9) [9]=> int(10) [10]=> string(1) "a" [11]=> string(1) "b" [12]=> string(1) "c" [13]=> string(1) "d" [14]=> string(1) "e" [15]=> string(1) "f" [16]=> string(1) "g" [17]=> string(1) "h" [18]=> string(1) "i" [19]=> string(1) "j" }

preferences:
317.82 ms | 406 KiB | 460 Q