3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; while($i=1000) echo mt_rand()&$i.' ';

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.100.0140.01114.58
7.2.90.0190.00914.66
7.2.80.0190.00714.35
7.2.70.0190.01214.95
7.2.60.0950.00314.92
7.2.50.0840.01514.66
7.1.220.0220.00413.67
7.1.210.0150.00713.76
7.1.200.0330.01013.76
7.1.190.0230.00013.73
7.1.180.0120.00713.66
7.1.170.0160.01113.79
7.0.310.3910.03013.34
7.0.300.1130.02713.65
5.6.380.0690.04814.31
5.6.370.0510.05114.05

preferences:
36.12 ms | 401 KiB | 5 Q