3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { } class Y extends X { } class Blah { public function blah(X $x) { $this->bleh($x); } public function bleh(Y $x) { echo "Hello\n"; } } $x = new Y; $b = new Blah; $b->blah($x);

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.0170.00316.25
8.3.50.0100.01221.28
8.3.40.0090.00918.66
8.3.30.0150.00018.80
8.3.20.0070.00020.21
8.3.10.0040.00421.85
8.3.00.0080.00022.46
8.2.180.0000.01916.38
8.2.170.0070.00722.96
8.2.160.0030.01022.03
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.75
8.2.110.0030.00622.20
8.2.100.0060.00617.38
8.2.90.0000.00719.09
8.2.80.0000.00817.97
8.2.70.0030.00717.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0090.00021.12
8.2.30.0050.00319.84
8.2.20.0000.00817.59
8.2.10.0020.00517.97
8.2.00.0050.00218.04
8.1.280.0070.01425.92
8.1.270.0080.00020.39
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00622.42
8.1.230.0090.00317.42
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0070.00317.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0080.00018.35
8.1.160.0070.00021.99
8.1.150.0030.00518.69
8.1.140.0040.00417.38
8.1.130.0040.00417.63
8.1.120.0000.00717.36
8.1.110.0040.00417.39
8.1.100.0030.00317.38
8.1.90.0030.00517.39
8.1.80.0040.00417.31
8.1.70.0030.00317.41
8.1.60.0050.00317.57
8.1.50.0050.00317.49
8.1.40.0040.00417.38
8.1.30.0000.00817.60
8.1.20.0070.00017.57
8.1.10.0030.00517.50
8.1.00.0040.00417.54
8.0.300.0000.00818.77
8.0.290.0040.00416.62
8.0.280.0000.00718.43
8.0.270.0040.00417.26
8.0.260.0050.00317.23
8.0.250.0000.00716.95
8.0.240.0090.00016.97
8.0.230.0090.00016.85
8.0.220.0030.00516.85
8.0.210.0000.00716.79
8.0.200.0030.00316.93
8.0.190.0030.00616.94
8.0.180.0030.00716.89
8.0.170.0080.00016.88
8.0.160.0000.00816.84
8.0.150.0070.00016.86
8.0.140.0000.00716.85
8.0.130.0050.00013.30
8.0.120.0000.00716.79
8.0.110.0000.00816.79
8.0.100.0040.00416.95
8.0.90.0000.00716.72
8.0.80.0150.00016.91
8.0.70.0000.00816.76
8.0.60.0040.00416.76
8.0.50.0040.00416.88
8.0.30.0100.00716.92
8.0.20.0080.01317.40
8.0.10.0070.00017.02
8.0.00.0090.01016.68
7.4.330.0000.00515.09
7.4.320.0000.00616.52
7.4.300.0030.00316.47
7.4.290.0050.00216.63
7.4.280.0030.00616.40
7.4.270.0030.00316.56
7.4.260.0000.00716.40
7.4.250.0030.00316.51
7.4.240.0020.00516.49
7.4.230.0040.00416.49
7.4.220.0030.01716.63
7.4.210.0060.01516.51
7.4.200.0040.00416.45
7.4.160.0090.00616.38
7.4.150.0030.01317.40
7.4.140.0150.00717.86
7.4.130.0130.00516.54
7.4.120.0080.00916.49
7.4.110.0030.01516.45
7.4.100.0150.00616.46
7.4.90.0000.01716.51
7.4.80.0120.00919.39
7.4.70.0140.00416.38
7.4.60.0130.00316.40
7.4.50.0030.00616.57
7.4.40.0060.00916.47
7.4.30.0130.00316.48
7.4.00.0070.01014.66
7.3.330.0000.00713.37
7.3.320.0050.00213.18
7.3.310.0070.00016.25
7.3.300.0040.00416.32
7.3.290.0060.00916.34
7.3.280.0090.00816.37
7.3.270.0140.00317.40
7.3.260.0120.00616.30
7.3.250.0060.01116.31
7.3.240.0140.00316.27
7.3.230.0170.00716.56
7.3.210.0150.00316.49
7.3.200.0070.01019.39
7.3.190.0100.00616.35
7.3.180.0140.00416.63
7.3.170.0100.00716.46
7.3.160.0060.01216.29
7.2.330.0000.01916.41
7.2.320.0100.01416.32
7.2.310.0170.00016.73
7.2.300.0030.01416.38
7.2.290.0110.00716.49
7.2.110.0230.00416.43
7.2.100.0230.00616.25
7.2.90.0220.00016.55
7.2.80.0240.00316.57
7.2.70.0220.00916.41
7.2.60.0180.00516.62
7.2.50.0200.00616.61
7.2.40.0140.00516.66
7.2.30.0130.00616.81
7.2.20.0210.00516.92
7.2.10.0150.00716.50
7.2.00.0090.00918.15
7.1.230.0120.01215.33
7.1.220.0170.00815.43
7.1.210.0150.01015.60
7.1.200.0110.00615.56
7.1.190.0170.01015.39
7.1.180.0270.00915.65
7.1.170.0150.00015.57
7.1.160.0130.01015.29
7.1.150.0110.00815.60
7.1.140.0090.01215.54
7.1.130.0120.00815.31
7.1.120.0090.01215.41
7.1.110.0190.00815.75
7.1.100.0160.00416.93
7.1.90.0320.00415.45
7.1.80.0170.01015.43
7.1.70.0130.00516.34
7.1.60.0080.01017.42
7.1.50.0170.00816.30
7.1.40.0330.01315.67
7.1.30.0180.00015.81
7.1.20.0110.01115.70
7.1.10.0150.00315.66
7.1.00.0140.03719.06
7.0.310.0200.00015.24
7.0.300.0120.00615.06
7.0.290.0240.00015.21
7.0.280.0210.00415.24
7.0.270.0230.00315.28
7.0.260.0140.00715.15
7.0.250.0150.00315.21
7.0.240.0210.00315.09
7.0.230.0150.00315.35
7.0.220.0080.00615.43
7.0.210.0130.00515.38
7.0.200.0060.00815.98
7.0.190.0100.01015.23
7.0.180.0080.00815.41
7.0.170.0200.00015.25
7.0.160.0070.00715.20
7.0.150.0220.00315.24
7.0.140.0150.00515.35
7.0.130.0160.00315.16
7.0.120.0230.00315.49
7.0.110.0110.00515.15
7.0.100.0100.01015.07
7.0.90.0110.00615.35
7.0.80.0110.01415.26
7.0.70.0150.01015.23
7.0.60.0130.04517.59
7.0.50.0110.04616.70
7.0.40.0080.03816.55
7.0.30.0200.03516.87
7.0.20.0190.02916.79
7.0.10.0140.04416.80
7.0.00.0030.04916.78
5.6.380.0130.00414.09
5.6.370.0090.00314.16
5.6.360.0140.00614.19
5.6.350.0150.00414.14
5.6.340.0180.00014.30
5.6.330.0080.00814.43
5.6.320.0090.00614.36
5.6.310.0090.00914.39
5.6.300.0080.00413.86
5.6.290.0050.01014.37
5.6.280.0070.03317.71
5.6.270.0060.00914.52
5.6.260.0120.00414.42
5.6.250.0070.00714.10
5.6.240.0040.01314.27
5.6.230.0130.00714.20
5.6.220.0110.00814.50
5.6.210.0070.02517.41
5.6.200.0080.04516.31
5.6.190.0090.02817.50
5.6.180.1890.02417.29
5.6.170.0190.02717.30
5.6.160.0040.05017.26
5.6.150.0060.03016.18
5.6.140.0070.02416.13
5.6.130.0090.03616.34
5.6.120.0050.04017.73
5.6.110.0070.05017.59
5.6.100.0020.02717.59
5.6.90.0120.04217.64
5.6.80.0100.02817.37
5.6.70.1650.02817.31
5.6.60.0100.01314.26
5.6.50.0090.00614.21
5.6.40.0160.00314.14
5.6.30.0150.00414.51
5.6.20.0090.00913.93
5.6.10.0110.00414.02
5.6.00.0000.01614.13
5.5.380.0050.00512.79
5.5.370.0100.00312.79
5.5.360.0090.00312.79
5.5.350.0140.02916.61
5.5.340.0050.04715.44
5.5.330.0130.03816.61
5.5.320.0250.04016.60
5.5.310.0160.01816.49
5.5.300.0120.02415.44
5.5.290.0050.02315.40
5.5.280.0090.04316.88
5.5.270.0120.01816.88
5.5.260.0050.04916.83
5.5.250.0100.04016.69
5.5.240.0160.03116.54
5.5.230.0110.00012.79
5.5.220.0100.00012.79
5.5.210.0080.00412.79
5.5.200.0050.00512.79
5.5.190.0090.00012.79
5.5.180.0050.01012.79
5.5.170.0180.00714.02
5.5.160.0120.00012.79
5.5.150.0090.00312.79
5.5.140.0100.00012.79
5.5.130.0100.00512.79
5.5.120.0150.00312.79
5.5.110.0100.00012.79
5.5.100.0100.00312.79
5.5.90.0110.00012.79
5.5.80.0040.00712.79
5.5.70.0000.01012.79
5.5.60.0030.00712.79
5.5.50.0060.00312.79
5.5.40.0100.00312.79
5.5.30.0080.00312.79
5.5.20.0050.00512.79
5.5.10.0050.00512.79
5.5.00.0090.00312.79
5.4.450.0290.03816.06
5.4.440.0450.03516.19
5.4.430.0420.03715.97
5.4.420.0460.03216.17
5.4.410.0380.03015.99
5.4.400.0320.03116.06
5.4.390.0450.02716.02
5.4.380.0510.01815.81
5.4.370.0420.03216.07
5.4.360.0350.04216.01
5.4.350.0160.02916.02
5.4.340.0070.03515.92
5.4.330.0130.00012.79
5.4.320.0080.02816.02
5.4.310.0530.02515.89
5.4.300.0410.03315.88
5.4.290.0530.03215.96
5.4.280.0450.04015.92
5.4.270.0430.03016.01
5.4.260.0440.03116.02
5.4.250.0460.03415.92
5.4.240.0400.03015.92
5.4.230.0410.02916.03
5.4.220.0550.03015.88
5.4.210.0460.03115.85
5.4.200.0420.03514.93
5.4.190.0390.03315.97
5.4.180.0130.02615.93
5.4.170.0060.03315.93
5.4.160.0290.02515.87
5.4.150.0490.02915.87
5.4.140.0550.03114.63
5.4.130.0530.02314.62
5.4.120.0410.02814.63
5.4.110.0460.03314.58
5.4.100.0480.02414.76
5.4.90.0350.03414.66
5.4.80.0430.03114.65
5.4.70.0420.04014.61
5.4.60.0120.02114.48
5.4.50.0020.02214.52
5.4.40.0170.03214.51
5.4.30.0180.02214.61
5.4.20.0160.02014.48
5.4.10.0060.00912.79
5.4.00.0080.00312.79

preferences:
55.62 ms | 401 KiB | 5 Q