3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $iterations = 1000000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = @$_GET['page'] ?: 'home'; } $suppressedTime = round(microtime(true) - $start, 8); $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $page = isset($_GET['page']) ? $_GET['page'] : 'home'; } $issetTime = round(microtime(true) - $start, 8); echo "results for {$iterations} iterations:\n\n"; echo "suppressed time: {$suppressedTime}\n"; echo "isset time: {$issetTime}\n\n"; echo "speed difference: " . round(100 / $suppressedTime * $issetTime, 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.0000.24019.51
7.1.70.0000.25417.01
7.1.60.0130.29119.40
7.1.50.0100.25216.93
7.1.00.0030.36722.35
7.0.200.0070.24316.91
7.0.140.0130.34722.04
7.0.60.0100.31719.96
7.0.50.0070.24017.83
7.0.40.0100.29720.04
7.0.30.0230.32020.12
7.0.20.0300.30320.03
7.0.10.0100.33020.17
7.0.00.0000.26020.16
5.6.280.0070.55021.11
5.6.210.0030.41720.48
5.6.200.0170.46018.22
5.6.190.0030.41020.28
5.6.180.0530.42720.63
5.6.170.0230.38720.38
5.6.160.0070.47320.38
5.6.150.0000.46718.21
5.6.140.0130.44318.07
5.6.130.0070.44718.21
5.6.120.0070.47021.00
5.6.110.0130.46321.09
5.6.100.0070.44021.11
5.6.90.0570.40020.99
5.6.80.0030.40020.41
5.5.350.0400.45320.34
5.5.340.0130.46318.01
5.5.330.0100.47020.21
5.5.320.0030.42020.37
5.5.310.0270.46020.33
5.5.300.0130.45718.02
5.5.290.0870.40017.89
5.5.280.0030.46320.98
5.5.270.0130.47320.73
5.5.260.0030.47720.93
5.5.250.0030.48320.80
5.5.240.0070.48020.19
5.4.450.0200.41719.42
5.4.440.0230.42019.55
5.4.430.0330.46319.13
5.4.420.0230.40719.42
5.4.410.0200.44319.38
5.4.400.0200.41319.13
5.4.390.0330.43019.13
5.4.380.0300.45019.11
5.4.370.0200.40019.22
5.4.360.0270.42319.05
5.4.350.0100.39718.92
5.4.340.0170.39019.09
5.4.320.0370.42719.15
5.4.310.0100.40719.09
5.4.300.0270.45019.23
5.4.290.0230.45719.08
5.4.280.0230.40718.80
5.4.270.0370.42719.21
5.4.260.0170.43019.08
5.4.250.0230.46019.07
5.4.240.0300.42319.21
5.4.230.0270.45719.13
5.4.220.0230.46019.05
5.4.210.0200.40019.21
5.4.200.0200.41319.08
5.4.190.0200.58719.19
5.4.180.0100.40718.89
5.4.170.0130.49718.79
5.4.160.0300.63318.88
5.4.150.0200.45018.91
5.4.140.0170.40016.45
5.4.130.0170.39016.43
5.4.120.0170.39316.28
5.4.110.0230.45716.49
5.4.100.0130.48716.45
5.4.90.0170.44316.13
5.4.80.0230.47316.20
5.4.70.0230.46316.41
5.4.60.0170.47716.40
5.4.50.0230.54716.39
5.4.40.0330.44316.23
5.4.30.0230.45316.31
5.4.20.0200.48016.36
5.4.10.0270.43016.42
5.4.00.0200.58015.88
5.3.290.0230.58014.53
5.3.280.0230.59014.45
5.3.270.0270.61014.47
5.3.260.0100.59014.58
5.3.250.0370.59314.64
5.3.240.0230.60014.64
5.3.230.0130.57714.57
5.3.220.0070.54014.67
5.3.210.0200.59714.60
5.3.200.0170.61714.50
5.3.190.0170.59314.47
5.3.180.0200.59714.49
5.3.170.0170.60314.50
5.3.160.0230.55014.52
5.3.150.0230.58014.45
5.3.140.0130.60714.47
5.3.130.0130.60314.51
5.3.120.0300.60014.49
5.3.110.0170.55714.43
5.3.100.0200.59314.09
5.3.90.0170.56713.87
5.3.80.0130.57713.98
5.3.70.0200.58313.83
5.3.60.0170.56313.89
5.3.50.0100.61013.91
5.3.40.0100.61313.76
5.3.30.0170.52713.78
5.3.20.0100.59313.54
5.3.10.0230.73713.62
5.3.00.0200.58713.68
5.2.170.0100.04711.93
5.2.160.0130.02711.93
5.2.150.0170.06011.93
5.2.140.0070.05311.93
5.2.130.0170.04711.93
5.2.120.0200.06011.93
5.2.110.0200.05711.93
5.2.100.0200.04011.93
5.2.90.0170.05711.93
5.2.80.0130.04011.93
5.2.70.0170.03011.93
5.2.60.0270.05011.93
5.2.50.0200.04311.93
5.2.40.0130.05311.93
5.2.30.0170.05711.93
5.2.20.0200.04311.93
5.2.10.0270.03311.93
5.2.00.0200.05711.93
5.1.60.0130.03311.93
5.1.50.0170.05011.93
5.1.40.0100.05711.93
5.1.30.0100.03711.93
5.1.20.0170.02711.93
5.1.10.0170.03011.93
5.1.00.0130.03011.93
5.0.50.0030.03311.93
5.0.40.0030.03011.93
5.0.30.0070.04311.93
5.0.20.0100.04311.93
5.0.10.0070.02711.93
5.0.00.0100.05311.93
4.4.90.0070.02311.93
4.4.80.0030.02711.93
4.4.70.0070.03711.93
4.4.60.0100.02011.93
4.4.50.0100.02011.93
4.4.40.0070.05711.93
4.4.30.0100.03311.93
4.4.20.0030.01711.93
4.4.10.0070.03011.93
4.4.00.0030.05311.93
4.3.110.0100.02711.93
4.3.100.0100.03011.93
4.3.90.0100.01711.93
4.3.80.0130.02011.93
4.3.70.0070.01311.93
4.3.60.0030.01711.93
4.3.50.0030.01711.93
4.3.40.0070.02311.93
4.3.30.0000.01711.93
4.3.20.0000.02311.93
4.3.10.0000.02011.93
4.3.00.0030.01711.93

preferences:
37.96 ms | 401 KiB | 5 Q