3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($i=0;$i<10;$i++) { echo rand()."\r\n"'; }
based on n3bKf
Output for 5.4.0 - 5.4.32
Parse error: syntax error, unexpected ''; ' (T_ENCAPSED_AND_WHITESPACE), expecting ',' or ';' in /in/32M97 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ',' or ';' in /in/32M97 on line 3
Process exited with code 255.
Output for 5.2.17
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1912319607 856449300 975211675 906951357 1897820219 551045317 480412430 1375092380 1684486662 753189962
Output for 5.2.16
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 2136749576 555322430 563974456 774863046 242489672 1679370079 1639989581 324699996 1887662214 55126127
Output for 5.2.15
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1159421721 2027735784 259751639 1948199771 644595441 1145199120 1994243972 546733380 916729126 1595906455
Output for 5.2.14
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1374198797 1159680969 605482547 1297092212 1721942271 565080963 1376973541 45046233 1471169165 1348618390
Output for 5.2.13
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 930002250 2113125073 1950369548 76888422 1771607009 168051178 229771916 620480951 358312419 1119741300
Output for 5.2.12
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 75915606 973442609 1392618398 273482557 1551188716 1794148481 1254973083 1548469690 200589032 315716002
Output for 5.2.11
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1255233670 207359169 1220018202 1554897826 1417344782 944146594 121450603 1855192227 923460568 679814187
Output for 5.2.10
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1857812397 1676641969 1332428741 1732084429 2011624836 106410718 1462335233 408000546 1461967139 313392497
Output for 5.2.9
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1719943812 980202936 327312479 697546332 1555487415 1343956708 1542584032 2112930451 547451093 772454061
Output for 5.2.8
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 11671660 714817077 1935818243 612932327 1690704407 913399127 218997946 1524726639 793514251 1870151142
Output for 5.2.7
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 280863594 1639485551 1832194499 763909217 690043038 1890454188 1636121141 1705164097 1152513135 1990568590
Output for 5.2.6
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 695402515 1742144285 522142939 1629223119 418197999 1167056509 1172150128 1930919238 241527177 1061711053
Output for 5.2.5
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 562412180 151014992 688338363 1712983584 1222346979 1028023648 816168275 679765754 1964255179 545149925
Output for 5.2.4
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 635896593 912918284 92143137 134823102 970958771 1633509805 1543259919 45772493 783926556 1834508468
Output for 5.2.3
Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /in/32M97 on line 3 1830668195 659883825 1862743101 898508706 2017095392 1791404209 838444534 519132761 729013990 826250975
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.2
Parse error: syntax error, unexpected ''', expecting ',' or ';' in /in/32M97 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '\'', expecting ',' or ';' in /in/32M97 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/32M97 on line 3
Process exited with code 255.