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++) { $a = @$_GET['page'] ?: 'home'; } echo round(microtime(true) - $start, 5);

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.1.70.0030.23816.93
7.1.60.0130.26419.40
7.1.50.0030.24216.70
7.1.00.0070.33022.30
7.0.200.0030.27416.54
7.0.140.0000.31322.07
7.0.60.0030.23020.04
7.0.50.0070.22017.82
7.0.40.0070.27320.09
7.0.30.0370.26720.13
7.0.20.0130.22020.09
7.0.10.0070.30719.99
7.0.00.0130.30020.01
5.6.210.0000.36020.56
5.6.200.0000.32718.15
5.6.190.0100.33020.39
5.6.180.0330.38320.42
5.6.170.0170.33020.55
5.6.160.0200.39720.54
5.6.150.0030.33718.11
5.6.140.0130.36018.21
5.6.130.0030.33018.18
5.6.120.0070.33721.03
5.6.110.0070.38021.09
5.6.100.0030.37721.08
5.6.90.0030.35320.94
5.6.80.0100.34020.41
5.5.350.0070.41020.47
5.5.340.0130.35017.98
5.5.330.0000.41020.57
5.5.320.0030.40720.34
5.5.310.0200.38020.13
5.5.300.0070.35318.02
5.5.290.0170.39717.93
5.5.280.0030.33720.81
5.5.270.0100.36720.86
5.5.260.0100.39720.76
5.5.250.0130.39320.61
5.5.240.4070.33720.26
5.4.450.0130.46719.41
5.4.440.0200.52719.13
5.4.430.0230.56319.63
5.4.420.0370.52719.54
5.4.410.0230.47019.29
5.4.400.0170.46019.08
5.4.390.1130.42019.09
5.4.380.0070.57018.73
5.4.370.0070.53318.46
5.4.360.0200.52318.66
5.4.350.0100.55318.74
5.4.340.0170.51718.54
5.4.320.0040.38012.46
5.4.310.0090.42012.45
5.4.300.0070.36712.46
5.4.290.0100.38412.45
5.4.280.0060.36912.36
5.4.270.0110.50012.35
5.4.260.0040.46412.36
5.4.250.0210.39812.36
5.4.240.0100.51612.36
5.4.230.0070.44312.34
5.4.220.0070.48212.34
5.4.210.0070.41412.34
5.4.200.0040.42412.34
5.4.190.0120.45712.34
5.4.180.0120.44112.34
5.4.170.0070.41112.35
5.4.160.0050.46012.35
5.4.150.0080.41512.34
5.4.140.0040.41812.03
5.4.130.0070.39112.02
5.4.120.0110.42111.97
5.4.110.0050.41411.97
5.4.100.0060.43411.97
5.4.90.0060.53711.97
5.4.80.0090.38411.96
5.4.70.0050.38011.96
5.4.60.0120.36411.96
5.4.50.0060.39511.96
5.4.40.0060.38711.95
5.4.30.0070.37511.95
5.4.20.0280.37211.95
5.4.10.0050.40111.95
5.4.00.0090.41511.44
5.3.290.0060.51812.80
5.3.280.0090.53412.70
5.3.270.0050.60412.73
5.3.260.0080.51812.72
5.3.250.0090.49912.72
5.3.240.0080.61112.72
5.3.230.0060.50412.71
5.3.220.0110.54312.68
5.3.210.0060.49912.68
5.3.200.0080.50712.68
5.3.190.0110.49312.67
5.3.180.0100.57912.67
5.3.170.0090.53512.67
5.3.160.0070.57312.67
5.3.150.0040.57912.67
5.3.140.0070.52312.66
5.3.130.0060.52712.66
5.3.120.0050.55512.65
5.3.110.0110.64612.66
5.3.100.0060.52512.12
5.3.90.0070.49712.09
5.3.80.0080.51912.07
5.3.70.0050.55012.07
5.3.60.0080.57212.06
5.3.50.0060.54712.00
5.3.40.0050.53212.00
5.3.30.0070.53511.95
5.3.20.0090.56511.73
5.3.10.0030.50011.69
5.3.00.0090.48911.68
5.2.170.0070.0309.19
5.2.160.0070.0439.19
5.2.150.0030.0329.19
5.2.140.0030.0329.18
5.2.130.0080.0349.14
5.2.120.0030.0309.14
5.2.110.0080.0259.15
5.2.100.0080.0249.14
5.2.90.0050.0289.14
5.2.80.0020.0329.14
5.2.70.0030.0399.14
5.2.60.0050.0289.10
5.2.50.0050.0329.07
5.2.40.0050.0349.04
5.2.30.0050.0329.02
5.2.20.0060.0299.00
5.2.10.0040.0368.93
5.2.00.0110.0338.79
5.1.60.0050.0248.07
5.1.50.0050.0238.07
5.1.40.0020.0368.05
5.1.30.0040.0258.40
5.1.20.0030.0288.42
5.1.10.0030.0268.14
5.1.00.0030.0258.14
5.0.50.0050.0186.63
5.0.40.0040.0196.48
5.0.30.0060.0296.29
5.0.20.0020.0246.27
5.0.10.0030.0206.24
5.0.00.0050.0296.24
4.4.90.0040.0214.78
4.4.80.0040.0194.75
4.4.70.0020.0164.76
4.4.60.0020.0154.75
4.4.50.0040.0164.77
4.4.40.0060.0244.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0040.0244.85
4.4.00.0060.0264.76
4.3.110.0020.0164.67
4.3.100.0040.0134.67
4.3.90.0010.0174.63
4.3.80.0050.0224.58
4.3.70.0040.0194.63
4.3.60.0010.0164.63
4.3.50.0040.0144.63
4.3.40.0030.0294.54
4.3.30.0030.0253.29
4.3.20.0020.0173.27
4.3.10.0050.0213.22
4.3.00.0030.01715.63

preferences:
34.63 ms | 401 KiB | 5 Q