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.2.00.0000.21619.63
7.1.70.0700.18117.34
7.1.60.0070.21517.23
7.1.50.0070.23116.83
7.1.00.0000.33322.41
7.0.200.0070.24216.52
7.0.140.0100.38022.21
7.0.60.0100.28720.04
7.0.50.0100.29017.86
7.0.40.0030.23020.21
7.0.30.0330.27320.06
7.0.20.0170.22720.25
7.0.10.0000.28020.13
7.0.00.0000.31720.03
5.6.280.0030.50020.92
5.6.210.0070.37320.51
5.6.200.0030.38018.09
5.6.190.0030.36320.41
5.6.180.0300.33720.32
5.6.170.0270.36020.33
5.6.160.0170.38320.41
5.6.150.0000.38318.18
5.6.140.0070.39018.20
5.6.130.0000.34018.19
5.6.120.0070.33320.95
5.6.110.0100.39320.95
5.6.100.0030.32021.00
5.6.90.0070.39720.98
5.6.80.0030.32320.28
5.5.350.0030.28020.38
5.5.340.0100.38018.05
5.5.330.0100.41020.17
5.5.320.0070.34020.21
5.5.310.0370.34720.47
5.5.300.0130.40017.96
5.5.290.0770.32018.02
5.5.280.0030.39020.64
5.5.270.0070.39320.86
5.5.260.0100.31720.75
5.5.250.0000.32720.71
5.5.240.4330.34020.15
5.4.450.0270.50019.13
5.4.440.0400.53719.41
5.4.430.0570.48319.20
5.4.420.0700.51019.31
5.4.410.0600.50019.00
5.4.400.0730.34319.16
5.4.390.1300.44319.07
5.4.380.0170.67718.66
5.4.370.0170.60018.57
5.4.360.0070.54018.73
5.4.350.0100.53718.69
5.4.340.0200.48718.57
5.4.320.0070.37412.46
5.4.310.0130.40612.45
5.4.300.0030.36412.46
5.4.290.0080.37212.45
5.4.280.0070.42612.35
5.4.270.0050.40812.35
5.4.260.0080.40712.36
5.4.250.0060.35812.36
5.4.240.0040.47612.35
5.4.230.0030.39912.34
5.4.220.0070.38512.34
5.4.210.0070.39712.35
5.4.200.0060.39112.34
5.4.190.0040.48912.34
5.4.180.0070.44812.34
5.4.170.0080.43012.36
5.4.160.0040.37012.35
5.4.150.0160.35612.34
5.4.140.0120.38012.03
5.4.130.0160.46312.02
5.4.120.0060.36111.98
5.4.110.0060.39011.97
5.4.100.0030.48611.97
5.4.90.0070.42511.96
5.4.80.0060.38411.96
5.4.70.0070.45511.96
5.4.60.0080.38411.96
5.4.50.0080.36311.96
5.4.40.0120.36511.95
5.4.30.0040.36711.95
5.4.20.0090.37211.95
5.4.10.0060.36911.95
5.4.00.0050.45211.44
5.3.290.0040.49212.80
5.3.280.0100.52612.71
5.3.270.0070.58112.72
5.3.260.0040.53412.72
5.3.250.0100.48612.72
5.3.240.0040.45912.72
5.3.230.0040.48312.71
5.3.220.0120.47312.68
5.3.210.0050.50712.68
5.3.200.0070.46512.68
5.3.190.0080.51812.68
5.3.180.0060.52412.67
5.3.170.0080.48512.67
5.3.160.0040.50912.67
5.3.150.0100.51612.67
5.3.140.0070.52412.66
5.3.130.0080.49012.66
5.3.120.0020.57112.65
5.3.110.0070.48512.66
5.3.100.0070.46712.12
5.3.90.0060.47812.08
5.3.80.0060.50512.08
5.3.70.0060.57012.07
5.3.60.0050.54412.06
5.3.50.0080.55012.00
5.3.40.0110.50212.00
5.3.30.0040.49811.95
5.3.20.0060.66211.72
5.3.10.0180.47211.70
5.3.00.0040.51511.68
5.2.170.0030.0319.19
5.2.160.0050.0299.19
5.2.150.0040.0319.19
5.2.140.0010.0339.18
5.2.130.0050.0329.14
5.2.120.0040.0309.14
5.2.110.0030.0309.15
5.2.100.0030.0299.14
5.2.90.0040.0299.14
5.2.80.0040.0309.14
5.2.70.0030.0319.13
5.2.60.0070.0279.09
5.2.50.0040.0309.07
5.2.40.0070.0269.04
5.2.30.0030.0309.01
5.2.20.0030.0309.01
5.2.10.0050.0268.92
5.2.00.0030.0298.78
5.1.60.0030.0248.07
5.1.50.0060.0228.06
5.1.40.0050.0238.04
5.1.30.0040.0258.39
5.1.20.0040.0258.42
5.1.10.0020.0278.14
5.1.00.0030.0268.14
5.0.50.0050.0186.63
5.0.40.0040.0186.49
5.0.30.0070.0276.29
5.0.20.0060.0166.26
5.0.10.0060.0166.24
5.0.00.0020.0316.24
4.4.90.0060.0114.78
4.4.80.0060.0114.75
4.4.70.0060.0124.75
4.4.60.0060.0114.76
4.4.50.0030.0154.77
4.4.40.0010.0264.71
4.4.30.0030.0144.76
4.4.20.0010.0174.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0010.0164.67
4.3.100.0040.0134.66
4.3.90.0040.0134.63
4.3.80.0030.0234.58
4.3.70.0050.0124.63
4.3.60.0020.0154.63
4.3.50.0020.0154.63
4.3.40.0040.0234.54
4.3.30.0030.0153.29
4.3.20.0050.0133.26
4.3.10.0010.0163.23
4.3.00.0030.02015.63

preferences:
35.71 ms | 401 KiB | 5 Q