3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 100; for(int $i=0; $i<100; $i++){ print $i + $n; $n = $n-2; }

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)
5.4.390.0300.05018.69
5.4.380.0000.07318.77
5.4.370.0230.05018.56
5.4.360.0270.04718.81
5.4.350.0270.05318.59
5.4.340.0230.06718.79
5.4.320.0230.06018.78
5.4.310.0230.06318.75
5.4.300.0130.06318.46
5.4.290.0270.06718.64
5.4.280.0200.05718.68
5.4.270.0130.06018.68
5.4.260.0270.04718.58
5.4.250.0370.07718.55
5.4.240.0330.04018.82
5.4.230.0330.06018.77
5.4.220.0330.06318.49
5.4.210.0130.05718.68
5.4.200.0100.06016.62
5.4.190.0270.06718.77
5.4.180.0170.05718.75
5.4.170.0170.06018.74
5.4.160.0170.06018.70
5.4.150.0230.05718.72
5.4.140.0270.05316.26
5.4.130.0230.05016.26
5.4.120.0300.04316.22
5.4.110.0300.05016.28
5.4.100.0270.04716.22
5.4.90.0100.06316.23
5.4.80.0100.06016.27
5.4.70.0130.06316.41
5.4.60.0270.04716.40
5.4.50.0230.04716.40
5.4.40.0200.05316.26
5.4.30.0230.05016.25
5.4.20.0200.05016.40
5.4.10.0230.05016.41
5.4.00.0200.05315.74
5.3.290.0200.06014.68
5.3.280.0270.04314.57
5.3.270.0170.05314.51
5.3.260.0170.05314.68
5.3.250.0200.05714.64
5.3.240.0200.06014.50
5.3.230.0230.05314.53
5.3.220.0300.04314.46
5.3.210.0330.04714.55
5.3.200.0100.06714.52
5.3.190.0270.05014.62
5.3.180.0130.06014.54
5.3.170.0330.04314.61
5.3.160.0370.04714.54
5.3.150.0200.05314.48
5.3.140.0130.06014.61
5.3.130.0300.06714.46
5.3.120.0070.06314.60
5.3.110.0130.06014.45
5.3.100.0170.06014.12
5.3.90.0200.04713.93
5.3.80.0170.05714.11
5.3.70.0270.06013.92
5.3.60.0200.05013.91
5.3.50.0170.06014.05
5.3.40.0270.04314.04
5.3.30.0200.05713.91
5.3.20.0100.06013.64
5.3.10.0200.05013.59
5.3.00.0270.05313.61
5.2.170.0130.04711.13
5.2.160.0100.04711.09
5.2.150.0300.02711.30
5.2.140.0100.04711.08
5.2.130.0300.02311.14
5.2.120.0100.04311.07
5.2.110.0200.03311.15
5.2.100.0300.02311.05
5.2.90.0200.03711.14
5.2.80.0200.03711.08
5.2.70.0170.04011.07
5.2.60.0100.04711.20
5.2.50.0130.04311.05
5.2.40.0130.04711.13
5.2.30.0100.04311.14
5.2.20.0200.03310.99
5.2.10.0030.05011.01
5.2.00.0100.04310.86
5.1.60.0170.0339.99
5.1.50.0100.0409.96
5.1.40.0100.0379.95
5.1.30.0100.04010.47
5.1.20.0130.04010.37
5.1.10.0130.04010.20
5.1.00.0130.03310.21
5.0.50.0100.0308.58
5.0.40.0170.0208.53
5.0.30.0170.0378.25
5.0.20.0200.0278.22
5.0.10.0200.0338.20
5.0.00.0070.0508.35
4.4.90.0100.0175.91
4.4.80.0100.0235.82
4.4.70.0130.0275.87
4.4.60.0100.0205.90
4.4.50.0130.0205.91
4.4.40.0070.0475.94
4.4.30.0130.0235.92
4.4.20.0030.0275.88
4.4.10.0030.0275.88
4.4.00.0070.0405.89
4.3.110.0070.0235.79
4.3.100.0070.0205.75
4.3.90.0100.0275.77
4.3.80.0070.0435.89
4.3.70.0130.0235.87
4.3.60.0070.0305.79
4.3.50.0100.0275.77
4.3.40.0030.0475.76
4.3.30.0030.0304.58
4.3.20.0030.0304.68
4.3.10.0030.0274.51
4.3.00.0030.0279.37

preferences:
142.23 ms | 1394 KiB | 7 Q