3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "<pre>"; 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 - 7.1.0
<pre>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
<pre>900 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL901 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL902 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL903 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL904 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL905 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL906 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL907 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL908 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL909 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL910 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL911 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL912 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL913 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL914 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL915 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL916 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL917 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL918 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL919 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL920 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL921 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL922 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL923 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL924 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL925 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL926 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL927 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL928 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL929 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL930 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL931 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL932 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL933 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL934 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL935 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL936 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL937 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL938 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL939 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL940 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL941 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL942 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL943 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL944 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL945 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL946 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL947 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL948 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL949 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL950 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/lHLAW on line 7 PHP_EOL
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
<pre> Warning: Wrong parameter count for range() in /in/lHLAW on line 3 Warning: Invalid argument supplied for foreach() in /in/lHLAW on line 3
Output for 4.3.11
<pre> Warning: Wrong parameter count for range() in /in/lHLAW on line 3