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 "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.3.00.0100.45116.43
7.2.130.0030.47516.84
7.2.120.0130.35016.74
7.2.110.0030.34016.89
7.2.100.0100.33816.85
7.2.90.0030.34116.58
7.2.80.0030.32616.81
7.2.70.0100.38016.71
7.2.60.0100.33416.95
7.2.50.0100.34416.74
7.2.40.0070.37116.85
7.2.30.0030.33317.00
7.2.20.0030.44416.68
7.2.10.0070.32617.12
7.2.00.0020.27818.14
7.1.250.0130.48915.72
7.1.240.0120.48615.35
7.1.230.0100.50215.45
7.1.220.0030.49215.44
7.1.210.0070.46315.63
7.1.200.0100.47015.68
7.1.190.0030.57015.39
7.1.180.0100.48715.39
7.1.170.0070.51315.81
7.1.160.0100.48715.80
7.1.150.0100.48915.73
7.1.140.0030.50315.95
7.1.130.0070.53215.81
7.1.120.0070.50615.92
7.1.110.0030.46915.92
7.1.100.0070.48015.69
7.1.90.0100.48415.61
7.1.80.0130.48915.51
7.1.70.0020.35516.37
7.1.60.0100.36217.62
7.1.50.0100.40616.44
7.1.40.0030.46915.95
7.1.30.0100.47015.47
7.1.20.0170.46715.55
7.1.10.0100.47115.58
7.1.00.0070.40518.96
7.0.330.0070.52415.07
7.0.320.0070.49715.50
7.0.310.0160.44615.47
7.0.300.0100.48515.14
7.0.290.0070.50915.09
7.0.280.0100.47515.44
7.0.270.0030.47215.40
7.0.260.0030.46815.31
7.0.250.0100.43415.28
7.0.240.0100.48115.24
7.0.230.0070.44615.32
7.0.220.0130.48615.28
7.0.210.0070.48915.47
7.0.200.0080.33516.04
7.0.190.0070.48315.31
7.0.180.0070.46415.07
7.0.170.0030.45915.27
7.0.160.0130.45015.39
7.0.150.0100.45315.57
7.0.140.0050.42018.60
7.0.130.0100.48415.52
7.0.120.0160.47815.23
7.0.110.0290.43815.25
7.0.100.0170.47215.50
7.0.90.0100.45715.50
7.0.80.0170.45715.00
7.0.70.0110.45915.45
7.0.60.0160.38017.56
7.0.50.0100.37816.61
7.0.40.0030.36416.52
7.0.30.0170.38816.73
7.0.20.0150.34616.85
7.0.10.0020.42216.70
7.0.00.0070.38116.73
5.6.380.0030.85214.28
5.6.370.0070.84014.35
5.6.360.0000.84414.30
5.6.350.0100.78014.38
5.6.340.0070.79014.60
5.6.330.0030.82014.51
5.6.320.0030.80414.41
5.6.310.0000.78914.58
5.6.300.0070.76614.53
5.6.290.0070.78514.45
5.6.280.0070.64317.65
5.6.270.0000.80114.51
5.6.260.0030.76414.06
5.6.250.0030.76614.13
5.6.240.0030.80014.04
5.6.230.0070.76614.35
5.6.220.0030.77814.16
5.6.210.0100.59917.63
5.6.200.0050.60116.25
5.6.190.0080.69417.44
5.6.180.0220.61217.23
5.6.170.0180.58217.28
5.6.160.0070.60417.28
5.6.150.0080.58816.27
5.6.140.0050.63716.23
5.6.130.0020.60116.18
5.6.120.0120.63317.75
5.6.110.0130.64117.80
5.6.100.0050.68317.76
5.6.90.0050.62317.81
5.6.80.0130.65317.34
5.6.70.0060.82214.24
5.6.60.0130.78514.39
5.6.50.0100.82714.22
5.6.40.0130.80614.55
5.6.30.0190.75514.29
5.6.20.0100.75813.91
5.6.10.0130.79114.47
5.6.00.0200.83114.39
5.5.380.0030.83711.30
5.5.370.0070.84910.90
5.5.360.0070.79311.35
5.5.350.1400.56115.77
5.5.340.0070.62814.62
5.5.330.0030.61515.59
5.5.320.1530.61515.80
5.5.310.0150.64915.69
5.5.300.0020.62714.43
5.5.290.0050.64414.42
5.5.280.0080.65316.04
5.5.270.0070.65315.85
5.5.260.0080.62516.05
5.5.250.0080.65615.90
5.5.240.0030.63815.55
5.5.230.0030.83411.07
5.5.220.0030.84511.11
5.5.210.0100.78611.21
5.5.200.0130.79611.34
5.5.190.0030.81210.65
5.5.180.0100.80410.92
5.5.170.0070.77911.00
5.5.160.0130.86410.99
5.5.150.0100.78411.09
5.5.140.0070.80211.21
5.5.130.0200.80810.80
5.5.120.0130.84711.12
5.5.110.0130.83711.06
5.5.100.0030.85811.10
5.5.90.0170.87910.77
5.5.80.0200.87410.80
5.5.70.0100.87910.67
5.5.60.0000.82111.28
5.5.50.0030.79710.93
5.5.40.0100.82710.99
5.5.30.0100.80710.75
5.5.20.0030.83910.94
5.5.10.0100.81211.17
5.5.00.0130.76611.11
5.4.450.0170.67815.18
5.4.440.0530.61815.28
5.4.430.0100.77515.14
5.4.420.0070.71015.30
5.4.410.0070.73715.05
5.4.400.0230.79014.98
5.4.390.0180.64214.74
5.4.380.0120.68914.91
5.4.370.0120.80014.81
5.4.360.0100.74614.61
5.4.350.0070.72614.80
5.4.340.0080.76514.77
5.4.330.0130.87810.70
5.4.320.0060.61111.63
5.4.310.0080.64511.58
5.4.300.0030.64411.68
5.4.290.0100.64111.70
5.4.280.0090.66511.62
5.4.270.0160.65911.51
5.4.260.0130.71111.59
5.4.250.0100.62311.60
5.4.240.0110.70811.64
5.4.230.0110.70811.56
5.4.220.0100.71011.51
5.4.210.0110.66611.62
5.4.200.0130.68411.60
5.4.190.0120.66211.44
5.4.180.0130.69011.50
5.4.170.0120.68111.60
5.4.160.0120.63511.65
5.4.150.0050.73011.54
5.4.140.0190.67911.27
5.4.130.0130.69811.29
5.4.120.0150.64211.29
5.4.110.0100.65511.40
5.4.100.0160.68511.34
5.4.90.0110.65211.43
5.4.80.0100.66911.42
5.4.70.0140.64211.27
5.4.60.0140.65411.36
5.4.50.0090.66411.28
5.4.40.0110.63811.52
5.4.30.0110.63111.47
5.4.20.0030.67711.28
5.4.10.0060.69911.46
5.4.00.0150.72611.01
5.3.290.0070.87611.68
5.3.280.0150.89811.57
5.3.270.0180.90611.70
5.3.260.0070.98911.66
5.3.250.0040.93511.52
5.3.240.0100.86311.59
5.3.230.0040.88411.60
5.3.220.0090.92311.50
5.3.210.0090.86911.61
5.3.200.0100.91311.50
5.3.190.0080.86511.67
5.3.180.0100.88511.69
5.3.170.0130.90711.70
5.3.160.0080.88811.69
5.3.150.0110.89711.59
5.3.140.0050.91111.61
5.3.130.0150.87111.58
5.3.120.0070.90211.57
5.3.110.0050.95911.62
5.3.100.0130.96511.33
5.3.90.0050.88011.37
5.3.80.0040.89911.17
5.3.70.0110.88611.31
5.3.60.0060.88211.16
5.3.50.0100.90311.27
5.3.40.0090.87111.25
5.3.30.0050.86111.17
5.3.20.0090.92811.00
5.3.10.0080.89210.98
5.3.00.0060.86211.01
5.2.170.0040.0229.72
5.2.160.0040.0189.72
5.2.150.0100.0149.72
5.2.140.0070.0179.72
5.2.130.0060.0199.70
5.2.120.0030.0189.70
5.2.110.0060.0189.70
5.2.100.0070.0209.70
5.2.90.0070.0159.70
5.2.80.0060.0189.70
5.2.70.0060.0159.70
5.2.60.0030.0209.68
5.2.50.0100.0219.66
5.2.40.0070.0169.65
5.2.30.0080.0189.63
5.2.20.0090.0189.63
5.2.10.0100.0149.59
5.2.00.0130.0169.52
5.1.60.0070.0189.16
5.1.50.0020.0199.16
5.1.40.0120.0149.15
5.1.30.0080.0169.33
5.1.20.0090.0149.34
5.1.10.0030.0159.20
5.1.00.0060.0139.20
5.0.50.0120.0138.44
5.0.40.0070.0188.37
5.0.30.0080.0208.27
5.0.20.0040.0128.26
5.0.10.0040.0138.25
5.0.00.0080.0188.25
4.4.90.0030.0117.52
4.4.80.0040.0097.50
4.4.70.0040.0097.50
4.4.60.0040.0077.50
4.4.50.0080.0077.51
4.4.40.0100.0157.48
4.4.30.0070.0097.51
4.4.20.0030.0147.55
4.4.10.0040.0097.55
4.4.00.0040.0167.51
4.3.110.0050.0087.46
4.3.100.0070.0097.46
4.3.90.0080.0097.44
4.3.80.0060.0127.42
4.3.70.0050.0147.44
4.3.60.0030.0107.44
4.3.50.0040.0107.44
4.3.40.0080.0117.39
4.3.30.0010.0126.77
4.3.20.0020.0116.76
4.3.10.0080.0096.74
4.3.00.0180.00812.94

preferences:
35.09 ms | 401 KiB | 5 Q