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(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.4.00.0090.00914.94
7.3.120.0100.01014.93
7.3.110.0040.01214.91
7.3.100.0130.00614.95
7.3.90.0000.01014.84
7.3.80.0100.00714.86
7.3.70.0030.01314.85
7.3.60.0040.00814.77
7.3.50.0080.00814.62
7.3.40.0060.01214.95
7.3.30.0090.00914.73
7.3.20.0030.00916.68
7.3.10.0060.01016.68
7.3.00.0030.01416.77
7.2.250.0140.00714.99
7.2.240.0070.01314.88
7.2.230.0090.00615.00
7.2.220.0040.00814.81
7.2.210.0070.00714.67
7.2.200.0090.00014.76
7.2.190.0070.00714.84
7.2.180.0000.01514.88
7.2.170.0030.01015.04
7.2.160.0000.01414.78
7.2.150.0030.00617.04
7.2.140.0100.00716.50
7.2.130.0090.00916.59
7.2.120.0070.00716.72
7.2.110.0100.00616.87
7.2.100.0080.00416.94
7.2.90.0040.01117.09
7.2.80.0050.00516.60
7.2.70.0070.01116.74
7.2.60.0070.00716.94
7.2.50.0090.00016.80
7.2.40.0090.00016.76
7.2.30.0060.00616.93
7.2.20.0080.00417.02
7.2.10.0060.00316.82
7.2.00.0030.01217.78
7.1.330.0090.00915.86
7.1.320.0000.01515.95
7.1.310.0030.00915.62
7.1.300.0040.00715.46
7.1.290.0000.01815.46
7.1.280.0030.01015.80
7.1.270.0060.00315.83
7.1.260.0060.01015.71
7.1.250.0070.00415.59
7.1.240.0030.01415.87
7.1.230.0030.01015.80
7.1.220.0000.01115.44
7.1.210.0100.01015.70
7.1.200.0060.00915.91
7.1.190.0050.00515.80
7.1.180.0040.00715.67
7.1.170.0080.00615.81
7.1.160.0040.00715.84
7.1.150.0040.00815.70
7.1.140.0040.00715.81
7.1.130.0030.01015.88
7.1.120.0070.00315.82
7.1.110.0030.00715.89
7.1.100.0060.01015.22
7.1.90.0070.00715.77
7.1.80.0030.01315.80
7.1.70.0020.00716.39
7.1.60.0050.01417.49
7.1.50.0120.00416.42
7.1.40.0100.00015.70
7.1.30.0100.00015.62
7.1.20.0000.01315.45
7.1.10.0000.01315.42
7.1.00.0080.03719.05
7.0.330.0050.00315.35
7.0.320.0070.00415.55
7.0.310.0040.00815.56
7.0.300.0000.01015.50
7.0.290.0060.00315.36
7.0.280.0040.00415.52
7.0.270.0100.00015.31
7.0.260.0090.00315.36
7.0.250.0070.00715.55
7.0.240.0120.00315.57
7.0.230.0030.00915.33
7.0.220.0070.00715.55
7.0.210.0090.00615.33
7.0.200.0060.00316.09
7.0.190.0060.00615.48
7.0.180.0070.00715.57
7.0.170.0100.00315.33
7.0.160.0080.00315.38
7.0.150.0080.00515.45
7.0.140.0050.04018.80
7.0.130.0100.00615.36
7.0.120.0080.00515.35
7.0.110.0110.00015.25
7.0.100.0040.01115.30
7.0.90.0080.00815.37
7.0.80.0000.01215.37
7.0.70.0030.00915.30
7.0.60.0020.04817.75
7.0.50.0100.02516.68
7.0.40.0050.02616.70
7.0.30.0320.03516.76
7.0.20.0160.02816.83
7.0.10.0150.02316.67
7.0.00.0070.03516.64
5.6.400.0120.00614.24
5.6.390.0090.00614.60
5.6.380.0030.00714.46
5.6.370.0070.01014.35
5.6.360.0030.01014.41
5.6.350.0040.00714.57
5.6.340.0090.00614.38
5.6.330.0050.00514.30
5.6.320.0070.00414.40
5.6.310.0060.01214.50
5.6.300.0100.00314.59
5.6.290.0080.00814.23
5.6.280.0060.04017.86
5.6.270.0070.00714.45
5.6.260.0000.01114.47
5.6.250.0030.01014.34
5.6.240.0100.00314.33
5.6.230.0070.00714.27
5.6.220.0030.00614.45
5.6.210.0030.05017.41
5.6.200.0050.03416.27
5.6.190.0110.03217.35
5.6.180.0100.02617.28
5.6.170.0130.04817.33
5.6.160.0090.04517.40
5.6.150.0070.02716.16
5.6.140.0040.02716.21
5.6.130.0030.04816.21
5.6.120.0030.03217.63
5.6.110.0070.04217.62
5.6.100.0110.04217.62
5.6.90.0050.02317.61
5.6.80.0080.03317.40
5.6.70.1780.02217.35
5.6.60.0040.01114.15
5.6.50.0040.01114.26
5.6.40.0080.00614.10
5.6.30.0040.01114.22
5.6.20.0090.00614.04
5.6.10.0040.01514.29
5.6.00.0060.01014.24
5.5.380.0040.01114.38
5.5.370.0000.01114.36
5.5.360.0060.00614.19
5.5.350.0050.04717.43
5.5.340.0070.02315.96
5.5.330.0070.03317.29
5.5.320.0150.03317.10
5.5.310.0130.02517.24
5.5.300.0070.04616.25
5.5.290.0020.03916.10
5.5.280.0050.02717.60
5.5.270.0100.04317.55
5.5.260.0050.02517.40
5.5.250.0070.04517.50
5.5.240.0100.03817.27
5.5.230.0070.01014.39
5.5.220.0000.01514.33
5.5.210.0070.01114.26
5.5.200.0070.00314.01
5.5.190.0000.01414.39
5.5.180.0080.00414.04
5.5.170.0030.01614.28
5.5.160.0090.00914.23
5.5.150.0040.00814.43
5.5.140.0070.00714.51
5.5.130.0060.00614.09
5.5.120.0070.01314.20
5.5.110.0090.00913.92
5.5.100.0100.01013.92
5.5.90.0030.01014.51
5.5.80.0140.00014.20
5.5.70.0060.00613.93
5.5.60.0070.01114.22
5.5.50.0090.00314.31
5.5.40.0040.00814.16
5.5.30.0110.00414.17
5.5.20.0070.00714.46
5.5.10.0130.00013.79
5.5.00.0050.00514.04
5.4.450.0350.02215.68
5.4.440.1830.02215.79
5.4.430.0160.03815.74
5.4.420.0190.01915.69
5.4.410.0140.04015.74
5.4.400.0180.03315.64
5.4.390.1330.02315.58
5.4.380.0130.04115.49
5.4.370.0130.03015.54
5.4.360.0220.02215.53
5.4.350.0080.02315.47
5.4.340.0220.02715.46
5.4.330.0070.00712.11
5.4.320.0070.02612.28
5.4.310.0090.02512.28
5.4.300.0090.02212.28
5.4.290.0070.02412.28
5.4.280.0050.02212.23
5.4.270.0060.02512.23
5.4.260.0100.02312.23
5.4.250.0090.02412.23
5.4.240.0060.02612.23
5.4.230.0060.02312.23
5.4.220.0050.02012.23
5.4.210.0070.02312.22
5.4.200.0070.02712.22
5.4.190.0100.02412.22
5.4.180.0110.02112.22
5.4.170.0080.01912.23
5.4.160.0050.02412.23
5.4.150.0100.02012.23
5.4.140.0040.02512.07
5.4.130.0090.02212.06
5.4.120.0040.02312.04
5.4.110.0080.02212.04
5.4.100.0090.02412.04
5.4.90.0080.02612.04
5.4.80.0090.02312.04
5.4.70.0040.02412.04
5.4.60.0070.02212.04
5.4.50.0060.02312.03
5.4.40.0070.02112.03
5.4.30.0050.02812.03
5.4.20.0090.02112.03
5.4.10.0080.01912.03
5.4.00.0080.02511.77

preferences:
36.7 ms | 400 KiB | 5 Q