3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterations = 1000000; $start = microtime(true); for ($i=0; $i<$iterations; $i++) { $a = @$_GET['a'] ?: 'home'; } echo round($start - microtime(true), 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.3.120.0030.26914.86
7.3.110.0070.28514.96
7.3.100.0130.25014.74
7.3.90.0130.27914.89
7.3.80.0030.25514.91
7.3.70.0030.25914.91
7.3.60.0030.28814.66
7.3.50.0000.27114.67
7.3.40.0000.26614.57
7.3.30.0070.25314.84
7.3.20.0070.27616.54
7.3.10.0100.25716.37
7.3.00.0030.26816.62
7.2.240.0100.26015.09
7.2.230.0070.29915.19
7.2.220.0000.27715.14
7.2.210.0030.28115.01
7.2.200.0070.26515.05
7.2.190.0130.26014.75
7.2.180.0070.26414.63
7.2.170.0070.27015.13
7.2.160.0000.27914.99
7.2.150.0030.27216.77
7.2.140.0070.27116.71
7.2.130.0030.27017.07
7.2.120.0070.26416.98
7.2.110.0100.26116.68
7.2.100.0070.26516.93
7.2.90.0070.26216.84
7.2.80.0030.27016.71
7.2.70.0030.27716.80
7.2.60.0000.27216.62
7.2.50.0160.25616.64
7.2.40.0030.27216.98
7.2.30.0070.28216.73
7.2.20.0130.26216.99
7.2.10.0000.27616.98
7.2.00.0070.28818.35
7.1.330.0030.37215.70
7.1.320.0030.36815.87
7.1.310.0030.35115.56
7.1.300.0030.35915.29
7.1.290.0100.38015.59
7.1.280.0100.38915.72
7.1.270.0070.35315.30
7.1.260.0100.38615.43
7.1.250.0070.34615.41
7.1.70.0070.22317.38
7.1.60.0100.27919.40
7.1.50.0000.24916.79
7.1.00.0030.32022.30
7.0.200.0000.25216.82
7.0.140.0030.45022.00
7.0.60.0100.23319.94
7.0.50.0130.28717.76
7.0.40.0130.27720.03
7.0.30.0270.28320.09
7.0.20.0270.22720.33
7.0.10.0100.23320.21
7.0.00.0070.29320.29
5.6.280.0100.43721.12
5.6.210.0070.39020.67
5.6.200.0070.35718.09
5.6.190.0070.39020.67
5.6.180.0370.36320.66
5.6.170.0230.31720.38
5.6.160.0100.39720.54
5.6.150.0100.39718.19
5.6.140.0030.35018.12
5.6.130.0100.39018.09
5.6.120.0030.34021.05
5.6.110.0100.38720.97
5.6.100.0100.38320.95
5.6.90.0030.34320.95
5.6.80.0100.39720.39
5.5.350.3930.35720.43
5.5.340.0100.39017.91
5.5.330.0100.41020.25
5.5.320.2830.34020.50
5.5.310.1200.33720.18
5.5.300.0030.41018.02
5.5.290.0130.37317.89
5.5.280.0100.32020.87
5.5.270.0070.32020.85
5.5.260.0070.40020.76
5.5.250.0070.37720.57
5.5.240.0070.27020.26
5.4.450.0070.52719.64
5.4.440.0270.51319.41
5.4.430.0300.50719.45
5.4.420.0500.53019.55
5.4.410.0870.54319.00
5.4.400.0700.49318.98
5.4.390.1470.27318.91
5.4.380.0000.57318.53
5.4.370.0100.50718.52
5.4.360.0130.51718.52
5.4.350.0130.49718.69
5.4.340.0170.53718.71
5.4.320.0050.40712.46
5.4.310.0090.41612.46
5.4.300.0020.36812.46
5.4.290.0060.39012.45
5.4.280.0120.41412.35
5.4.270.0060.41112.35
5.4.260.0020.40612.35
5.4.250.0080.36112.35
5.4.240.0080.40412.36
5.4.230.0040.43312.34
5.4.220.0040.43512.35
5.4.210.0100.45712.35
5.4.200.0070.39412.34
5.4.190.0060.44512.34
5.4.180.0070.45512.34
5.4.170.0080.40512.35
5.4.160.0060.36812.35
5.4.150.0070.40012.34
5.4.140.0040.56612.03
5.4.130.0120.42712.02
5.4.120.0180.36811.97
5.4.110.0120.39411.97
5.4.100.0040.47211.97
5.4.90.0070.52411.96
5.4.80.0050.40511.96
5.4.70.0080.42511.96
5.4.60.0060.37311.97
5.4.50.0060.38711.96
5.4.40.0110.38311.95
5.4.30.0050.36511.95
5.4.20.0050.36411.95
5.4.10.0070.36311.95
5.4.00.0050.44511.45
5.3.290.0040.49312.80
5.3.280.0040.59312.71
5.3.270.0060.54812.72
5.3.260.0080.47112.72
5.3.250.0090.51512.71
5.3.240.0060.50612.72
5.3.230.0070.53012.70
5.3.220.0060.47212.68
5.3.210.0090.58112.68
5.3.200.0060.48012.68
5.3.190.0080.50312.68
5.3.180.0060.51512.68
5.3.170.0050.49012.67
5.3.160.0060.58212.67
5.3.150.0110.52412.67
5.3.140.0070.50012.66
5.3.130.0070.47112.66
5.3.120.0070.48612.66
5.3.110.0070.59012.66
5.3.100.0070.47512.12
5.3.90.0110.46612.08
5.3.80.0100.48712.08
5.3.70.0120.53912.07
5.3.60.0050.50812.07
5.3.50.0060.52612.00
5.3.40.0070.51212.00
5.3.30.0070.55911.95
5.3.20.0030.54511.73
5.3.10.0080.47811.69
5.3.00.0060.51911.68
5.2.170.0040.0309.19
5.2.160.0070.0279.19
5.2.150.0050.0309.19
5.2.140.0030.0329.18
5.2.130.0070.0279.14
5.2.120.0040.0299.14
5.2.110.0060.0289.15
5.2.100.0050.0279.14
5.2.90.0060.0279.14
5.2.80.0030.0319.14
5.2.70.0060.0289.13
5.2.60.0030.0319.10
5.2.50.0070.0279.06
5.2.40.0050.0289.04
5.2.30.0050.0309.01
5.2.20.0070.0279.00
5.2.10.0070.0258.92
5.2.00.0060.0268.78
5.1.60.0030.0248.07
5.1.50.0020.0278.07
5.1.40.0050.0228.05
5.1.30.0080.0218.39
5.1.20.0030.0278.42
5.1.10.0030.0268.14
5.1.00.0050.0258.14
5.0.50.0060.0176.63
5.0.40.0030.0196.48
5.0.30.0050.0296.30
5.0.20.0040.0176.26
5.0.10.0020.0206.25
5.0.00.0040.0296.24
4.4.90.0010.0174.78
4.4.80.0020.0164.75
4.4.70.0040.0144.75
4.4.60.0030.0154.76
4.4.50.0050.0134.77
4.4.40.0040.0244.70
4.4.30.0030.0154.76
4.4.20.0010.0184.84
4.4.10.0030.0154.85
4.4.00.0020.0254.76
4.3.110.0040.0154.67
4.3.100.0020.0154.66
4.3.90.0030.0154.63
4.3.80.0030.0244.58
4.3.70.0010.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0164.63
4.3.40.0060.0214.53
4.3.30.0020.0163.29
4.3.20.0000.0183.26
4.3.10.0020.0163.22
4.3.00.0200.01015.63

preferences:
37.49 ms | 400 KiB | 5 Q