3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 - 7.1.0
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
900PHP_EOL901PHP_EOL902PHP_EOL903PHP_EOL904PHP_EOL905PHP_EOL906PHP_EOL907PHP_EOL908PHP_EOL909PHP_EOL910PHP_EOL911PHP_EOL912PHP_EOL913PHP_EOL914PHP_EOL915PHP_EOL916PHP_EOL917PHP_EOL918PHP_EOL919PHP_EOL920PHP_EOL921PHP_EOL922PHP_EOL923PHP_EOL924PHP_EOL925PHP_EOL926PHP_EOL927PHP_EOL928PHP_EOL929PHP_EOL930PHP_EOL931PHP_EOL932PHP_EOL933PHP_EOL934PHP_EOL935PHP_EOL936PHP_EOL937PHP_EOL938PHP_EOL939PHP_EOL940PHP_EOL941PHP_EOL942PHP_EOL943PHP_EOL944PHP_EOL945PHP_EOL946PHP_EOL947PHP_EOL948PHP_EOL949PHP_EOL950PHP_EOL
Output for 4.3.0 - 4.3.10, 4.4.0 - 4.4.9
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/3iCGv</b> on line <b>3</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/in/3iCGv</b> on line <b>3</b><br />
Output for 4.3.11
<br /> <b>Warning</b>: Wrong parameter count for range() in <b>/in/3iCGv</b> on line <b>3</b><br />