3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HiddenUser { } class User { } class Foo { public function bar(User $u) {} } $foo = new Foo(); $user = new User(); $user = new HiddenUser(); $foo->bar($user);

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)
8.3.60.0120.00616.63
8.3.50.0110.01121.21
8.3.40.0140.00718.92
8.3.30.0110.01118.81
8.3.20.0080.00020.12
8.3.10.0050.00323.39
8.3.00.0080.00017.80
8.2.180.0150.00018.29
8.2.170.0110.00722.96
8.2.160.0090.00619.26
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00417.63
8.2.110.0030.00719.31
8.2.100.0080.00417.91
8.2.90.0080.00017.50
8.2.80.0060.00318.46
8.2.70.0000.00817.63
8.2.60.0030.00517.50
8.2.50.0000.00917.63
8.2.40.0030.00519.48
8.2.30.0000.00720.57
8.2.20.0080.00017.55
8.2.10.0070.00017.98
8.2.00.0000.00817.86
8.1.280.0140.00025.92
8.1.270.0160.00323.84
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00718.96
8.1.230.0110.00020.99
8.1.220.0050.00318.46
8.1.210.0030.00518.77
8.1.200.0080.00017.52
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0000.00818.65
8.1.160.0050.00322.00
8.1.150.0040.00418.74
8.1.140.0040.00421.36
8.1.130.0070.00017.64
8.1.120.0040.00417.34
8.1.110.0030.00517.31
8.1.100.0030.00317.40
8.1.90.0000.00717.29
8.1.80.0000.00817.37
8.1.70.0030.00317.37
8.1.60.0060.00317.46
8.1.50.0000.00917.41
8.1.40.0030.00617.49
8.1.30.0040.00417.71
8.1.20.0000.00817.59
8.1.10.0040.00417.61
8.1.00.0050.00217.57
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00818.21
8.0.270.0030.00617.19
8.0.260.0030.00317.19
8.0.250.0000.00716.83
8.0.240.0070.00016.99
8.0.230.0030.00516.84
8.0.220.0050.00216.80
8.0.210.0070.00016.75
8.0.200.0060.00016.82
8.0.190.0070.00016.85
8.0.180.0060.00316.89
8.0.170.0070.00016.78
8.0.160.0040.00416.89
8.0.150.0040.00416.86
8.0.140.0000.00716.74
8.0.130.0030.00313.27
8.0.120.0040.00416.74
8.0.110.0050.00216.79
8.0.100.0040.00416.70
8.0.90.0000.00716.83
8.0.80.0080.01216.76
8.0.70.0070.00016.85
8.0.60.0040.00416.94
8.0.50.0060.00316.86
8.0.30.0090.01017.08
8.0.20.0140.00517.40
8.0.10.0000.00716.80
8.0.00.0120.00716.63
7.4.330.0000.00515.08
7.4.320.0030.00316.43
7.4.300.0030.00316.51
7.4.290.0070.00016.54
7.4.280.0000.00816.57
7.4.270.0000.00716.48
7.4.260.0080.00016.61
7.4.250.0040.00416.46
7.4.240.0060.00216.57
7.4.230.0000.00716.49
7.4.220.0120.00616.43
7.4.210.0090.01316.55
7.4.200.0030.00316.40
7.4.160.0120.00316.48
7.4.150.0100.01017.40
7.4.140.0140.00317.86
7.4.130.0130.00616.48
7.4.120.0120.00616.39
7.4.110.0120.01216.56
7.4.100.0120.00516.58
7.4.90.0150.00316.48
7.4.80.0000.01619.39
7.4.70.0100.01016.48
7.4.60.0100.00716.54
7.4.50.0040.00016.26
7.4.40.0090.00816.61
7.4.30.0070.01116.46
7.4.00.0090.00414.93
7.3.330.0050.00013.23
7.3.320.0030.00213.32
7.3.310.0060.00316.36
7.3.300.0000.00816.41
7.3.290.0110.00516.40
7.3.280.0110.00916.33
7.3.270.0100.01017.40
7.3.260.0120.00616.24
7.3.250.0100.00816.38
7.3.240.0070.01016.47
7.3.230.0030.01516.39
7.3.210.0100.01016.37
7.3.200.0070.01016.45
7.3.190.0030.01616.45
7.3.180.0120.00316.41
7.3.170.0070.01416.27
7.3.160.0070.01016.44
7.2.330.0110.00716.33
7.2.320.0070.01016.37
7.2.310.0150.00316.71
7.2.300.0160.00016.28
7.2.290.0160.00016.78
7.2.60.0070.01016.84
7.2.00.0060.00619.24
7.1.200.0040.01115.67
7.1.100.0060.00618.26
7.1.70.0100.00317.00
7.1.60.0140.01019.50
7.1.50.0130.00616.96
7.1.00.0030.07722.41
7.0.200.0760.00414.58
7.0.60.0100.06319.96
7.0.50.0070.08317.88
7.0.40.0000.06020.13
7.0.30.0200.06720.09
7.0.20.0300.04720.22
7.0.10.0170.04720.08
7.0.00.0170.07020.09
5.6.280.0070.03020.78
5.6.210.0100.03320.69
5.6.200.0070.04718.29
5.6.190.0030.08020.52
5.6.180.3470.04720.75
5.6.170.0270.06020.41
5.6.160.0100.06020.48
5.6.150.0030.07318.29
5.6.140.0030.04718.23
5.6.130.0030.09318.18
5.6.120.0070.07721.04
5.6.110.0100.07320.97
5.6.100.0130.05020.99
5.6.90.0130.08321.00
5.6.80.0070.07720.38
5.6.70.4430.04020.38
5.5.350.0200.08320.41
5.5.340.0100.03318.00
5.5.330.0130.04020.57
5.5.320.0430.07020.32
5.5.310.0200.07020.42
5.5.300.0100.04717.95
5.5.290.0100.07718.07
5.5.280.0100.07320.68
5.5.270.0170.07320.64
5.5.260.0070.08720.84
5.5.250.0030.07720.71
5.5.240.0030.03720.27
5.4.450.0700.06719.61
5.4.440.0670.05719.48
5.4.430.0700.05719.58
5.4.420.0930.05019.57
5.4.410.0870.05319.48
5.4.400.0770.05719.13
5.4.390.0870.05019.14
5.4.380.0670.05019.15
5.4.370.0600.06018.88
5.4.360.0830.05018.98
5.4.350.0630.06019.28
5.4.340.0730.05719.30
5.4.320.0970.05319.38
5.4.310.0630.05719.15
5.4.300.0770.04719.30
5.4.290.0700.05019.06
5.4.280.0830.06719.25
5.4.270.0870.05719.15
5.4.260.1030.06019.37
5.4.250.0630.05719.37
5.4.240.0770.05018.89
5.4.230.0670.05019.14
5.4.220.0800.05319.00
5.4.210.0930.04319.30
5.4.200.0700.05319.27
5.4.190.0630.06019.13
5.4.180.0800.05719.22
5.4.170.0970.05719.36
5.4.160.0900.05319.26
5.4.150.0670.06019.20
5.4.140.0630.05316.54
5.4.130.0870.05316.30
5.4.120.1030.06716.32
5.4.110.0900.06016.68
5.4.100.0730.06716.24
5.4.90.0870.04316.65
5.4.80.0800.05316.23
5.4.70.0830.05716.61
5.4.60.0900.06316.58
5.4.50.0770.05716.57
5.4.40.0770.04716.48
5.4.30.0730.05316.57
5.4.20.0800.03716.59
5.4.10.0800.04016.36
5.4.00.0900.04715.84

preferences:
51.58 ms | 401 KiB | 5 Q