3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ( range(900, 950, 1) as $art_id ) { // ob_start(); // do stuff // do a lot more stuff echo $art_id, PHP_EOL; // ob_get_clean(); }// show error } ?>
Output for 5.0.2 - 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, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950
Output for 5.0.0 - 5.0.1
900 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL901 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL902 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL903 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL904 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL905 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL906 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL907 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL908 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL909 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL910 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL911 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL912 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL913 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL914 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL915 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL916 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL917 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL918 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL919 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL920 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL921 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL922 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL923 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL924 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL925 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL926 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL927 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL928 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL929 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL930 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL931 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL932 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL933 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL934 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL935 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL936 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL937 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL938 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL939 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL940 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL941 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL942 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL943 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL944 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL945 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL946 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL947 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL948 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL949 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL950 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3iCGv on line 7 PHP_EOL
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
Warning: Wrong parameter count for range() in /in/3iCGv on line 3 Warning: Invalid argument supplied for foreach() in /in/3iCGv on line 3
Output for 4.3.11
Warning: Wrong parameter count for range() in /in/3iCGv on line 3

preferences:
372.06 ms | 401 KiB | 460 Q