3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 10000000; $start = microtime(); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round($start - microtime(), 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)
7.2.00.0072.02319.55
7.1.70.0002.45417.34
7.1.60.0071.93919.40
7.1.50.0131.92016.94
7.1.00.0072.16322.32
7.0.200.0132.44916.68
7.0.140.0032.49722.06
7.0.60.0131.94019.98
7.0.50.0031.82317.66
7.0.40.0101.74020.08
7.0.30.0271.90720.00
7.0.20.0201.85020.17
7.0.10.0272.03020.21
7.0.00.0031.99020.11
5.6.280.0072.49321.04
5.6.210.0072.49320.56
5.6.200.0072.49318.18
5.6.190.0072.48320.33
5.6.180.0232.47720.24
5.6.170.0232.47720.42
5.6.160.0132.48720.24
5.6.150.0072.49318.16
5.6.140.0102.49017.92
5.6.130.0172.48318.05
5.6.120.0102.49021.02
5.6.110.0102.49021.00
5.6.100.0072.49321.02
5.6.90.0102.49021.00
5.6.80.0002.50020.37
5.6.70.4132.08720.36
5.5.350.0172.48320.44
5.5.340.0102.49017.96
5.5.330.0002.50019.92
5.5.320.0302.47020.12
5.5.310.0232.47720.06
5.5.300.0002.50017.84
5.5.290.0032.49717.85
5.5.280.3902.10720.97
5.5.270.0172.48320.74
5.5.260.0032.49720.78
5.5.250.0032.49720.43
5.5.240.0072.49320.19
5.4.450.0202.47719.49
5.4.440.4302.06719.46
5.4.430.0202.47719.47
5.4.420.0202.47719.49
5.4.410.0272.47019.21
5.4.400.0332.46318.82
5.4.390.2932.20319.02
5.4.380.0302.46719.02
5.4.370.0372.46018.86
5.4.360.0532.44318.71
5.4.350.0172.48019.01
5.4.340.0232.47318.96
5.4.320.0402.45718.96
5.4.310.0602.43718.96
5.4.300.0172.48018.96
5.4.290.0432.45319.18
5.4.280.0532.44318.84
5.4.270.0632.43319.00
5.4.260.0272.47019.01
5.4.250.0232.47319.00
5.4.240.0172.48018.99
5.4.230.0272.47018.74
5.4.220.0332.46319.00
5.4.210.0272.47019.16
5.4.200.0202.47719.16
5.4.190.0272.47019.00
5.4.180.0202.48018.85
5.4.170.3832.11318.95
5.4.160.0332.46318.93
5.4.150.4172.08019.04
5.4.140.3432.15316.15
5.4.130.0202.47716.32
5.4.120.0372.46016.21
5.4.110.0102.48716.05
5.4.100.0302.46716.41
5.4.90.0302.46716.36
5.4.80.0032.49316.34
5.4.70.0072.49016.39
5.4.60.0002.49716.36
5.4.50.0032.49316.02
5.4.40.0032.49716.17
5.4.30.0172.48016.27
5.4.20.0232.47316.33
5.4.10.3372.16016.32
5.4.00.3332.16315.90

preferences:
24.38 ms | 401 KiB | 5 Q