3v4l.org

run code in 300+ PHP versions simultaneously
<?php mt_srand(1361152757.2); for ($i=1; $i < 25; $i++) { echo mt_rand(), PHP_EOL; }
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0
742517192 1985840917 315520216 1598860007 302906047 277993108 118643993 484195243 1149104963 639957834 1275361096 1942703481 1347077395 972287037 1736377520 2055704086 374636454 1585160686 1818903213 99616821 270389302 1605692802 111240013 383616188
Output for 5.2.1 - 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.38, 7.0.0 - 7.0.33
742517192 1985840917 1837466030 537354129 1833308105 277993108 2019141743 484195243 1149104963 639957834 860848702 209762319 1347077395 972287037 406122950 2055704086 1763674832 556815512 1818903213 99616821 1867916608 1605692802 2045417019 383616188
Output for 4.3.10 - 4.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0
26245605 133298092 1295313066 2074908998 894301405 641746474 280752603 1920711607 176660747 950504813 490594843 1537710712 681883946 720953956 1087891745 1078104599 720351223 1806105713 1033655152 734965191 551685358 813476122 1231607543 934712198
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
26245605 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL133298092 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1295313066 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL2074908998 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL894301405 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL641746474 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL280752603 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1920711607 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL176660747 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL950504813 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL490594843 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1537710712 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL681883946 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL720953956 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1087891745 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1078104599 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL720351223 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1806105713 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1033655152 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL734965191 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL551685358 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL813476122 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL1231607543 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL934712198 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/eEVrg on line 5 PHP_EOL

preferences:
218.44 ms | 409 KiB | 287 Q