3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function foo(B $b) { return $b->bar(); } } class B extends A { protected function bar() { return 'OK'; } } echo (new A)->foo(new B);

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.4.20.0070.01317.41
8.4.10.0070.00317.69
8.3.150.0160.00316.91
8.3.140.0070.01416.57
8.3.130.0000.00818.32
8.3.120.0030.00620.68
8.3.110.0040.00420.94
8.3.100.0060.00316.43
8.3.90.0050.00326.77
8.3.80.0030.00618.43
8.3.70.0070.00716.50
8.3.60.0070.01418.56
8.3.50.0100.01017.40
8.3.40.0070.00718.62
8.3.30.0110.00418.84
8.3.20.0000.00818.91
8.3.10.0050.00321.91
8.3.00.0050.00319.79
8.2.270.0100.01017.14
8.2.260.0150.00416.52
8.2.250.0040.00416.39
8.2.240.0030.00718.90
8.2.230.0160.00022.58
8.2.220.0120.00024.06
8.2.210.0030.00526.77
8.2.200.0060.00316.25
8.2.190.0110.00416.58
8.2.180.0150.00618.17
8.2.170.0080.01118.79
8.2.160.0140.00722.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00019.66
8.2.110.0070.00421.00
8.2.100.0070.00317.78
8.2.90.0030.00617.91
8.2.80.0080.00017.97
8.2.70.0040.00417.79
8.2.60.0040.00418.03
8.2.50.0030.00618.16
8.2.40.0000.00820.96
8.2.30.0020.00521.23
8.2.20.0000.00717.87
8.2.10.0000.00717.99
8.2.00.0040.00417.93
8.1.310.0070.00316.71
8.1.300.0080.01216.27
8.1.290.0090.00030.84
8.1.280.0040.01425.92
8.1.270.0070.00022.06
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0030.00622.06
8.1.230.0080.00622.62
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.23
8.1.190.0090.00017.10
8.1.180.0050.00318.10
8.1.170.0040.00418.46
8.1.160.0000.00718.70
8.1.150.0040.00418.75
8.1.140.0000.00820.25
8.1.130.0000.00718.71
8.1.120.0000.00717.32
8.1.110.0040.00417.24
8.1.100.0000.00817.30
8.1.90.0040.00417.29
8.1.80.0000.00717.32
8.1.70.0030.00317.25
8.1.60.0090.00017.48
8.1.50.0040.00417.46
8.1.40.0000.00817.52
8.1.30.0040.00417.54
8.1.20.0030.00517.55
8.1.10.0000.00817.53
8.1.00.0000.00817.31
8.0.300.0000.00720.16
8.0.290.0030.00516.75
8.0.280.0030.00318.48
8.0.270.0040.00417.13
8.0.260.0000.00818.44
8.0.250.0080.00017.01
8.0.240.0000.00816.91
8.0.230.0030.00316.86
8.0.220.0040.00416.82
8.0.210.0070.00016.71
8.0.200.0100.00016.91
8.0.190.0000.00816.79
8.0.180.0000.00716.76
8.0.170.0040.00416.84
8.0.160.0000.00816.79
8.0.150.0000.00816.76
8.0.140.0070.00416.77
8.0.130.0030.00313.31
8.0.120.0030.00316.78
8.0.110.0000.00716.68
8.0.100.0000.00716.68
8.0.90.0000.00716.70
8.0.80.0060.00916.77
8.0.70.0000.00816.72
8.0.60.0030.00616.82
8.0.50.0030.00316.86
8.0.30.0050.01317.08
8.0.20.0090.00917.40
8.0.10.0000.00816.91
8.0.00.0140.00316.93
7.4.330.0030.00315.55
7.4.320.0000.00616.48
7.4.300.0030.00316.44
7.4.290.0060.00016.47
7.4.280.0040.00416.53
7.4.270.0000.00716.41
7.4.260.0000.00716.46
7.4.250.0040.00416.38
7.4.240.0000.00716.35
7.4.230.0000.00716.27
7.4.220.0090.00816.36
7.4.210.0060.00916.49
7.4.200.0000.00716.63
7.4.160.0130.00716.46
7.4.150.0170.00417.40
7.4.140.0110.01017.86
7.4.130.0160.00816.45
7.4.120.0140.00816.55
7.4.110.0080.00916.45
7.4.100.0110.00616.55
7.4.90.0090.00916.29
7.4.80.0100.00719.39
7.4.70.0130.00716.51
7.4.60.0130.00716.52
7.4.50.0080.00616.59
7.4.40.0030.01316.55
7.4.30.0100.00716.25
7.4.00.0000.01414.90
7.3.330.0030.00313.29
7.3.320.0050.00013.10
7.3.310.0000.00716.05
7.3.300.0040.00416.14
7.3.290.0000.00716.15
7.3.280.0090.00716.26
7.3.270.0040.01517.40
7.3.260.0100.01316.34
7.3.250.0110.00816.32
7.3.240.0120.00816.19
7.3.230.0040.01416.25
7.3.210.0060.01216.43
7.3.200.0150.00616.58
7.3.190.0060.00916.21
7.3.180.0060.00916.43
7.3.170.0060.01216.16
7.3.160.0130.00716.21
7.3.10.0030.00716.45
7.3.00.0070.00316.40
7.2.330.0040.01716.66
7.2.320.0060.01216.64
7.2.310.0140.00316.60
7.2.300.0060.01216.55
7.2.290.0100.00716.64
7.2.130.0040.00716.67
7.2.120.0060.00616.98
7.2.110.0070.00316.81
7.2.100.0420.00915.89
7.2.90.0350.00815.87
7.2.80.0390.01015.79
7.2.70.0420.00915.70
7.2.60.0260.00815.96
7.2.50.0310.01115.77
7.2.40.0360.00816.02
7.2.30.0330.01015.87
7.2.20.0340.00515.67
7.2.10.0410.00315.97
7.2.00.0370.00515.83
7.1.250.0100.00015.59
7.1.220.0800.00713.53
7.1.210.0580.00413.64
7.1.200.0300.00814.81
7.1.190.0810.00413.61
7.1.180.0930.00313.27
7.1.170.0760.00913.52
7.1.160.0540.01213.71
7.1.150.0620.00913.54
7.1.140.0800.00413.52
7.1.130.0780.00713.66
7.1.120.0670.00313.50
7.1.110.0640.01013.77
7.1.100.0420.01315.86
7.1.90.0250.01316.77
7.1.80.0250.01016.67
7.1.70.0200.01115.77
7.1.60.0320.01633.97
7.1.50.0410.00933.73
7.1.40.0370.01633.36
7.1.30.0380.01233.43
7.1.20.0360.01633.63
7.1.10.0260.00915.51
7.1.00.0230.01115.44
7.0.310.0740.00013.36
7.0.300.0520.00413.16
7.0.290.0760.01313.58
7.0.280.0820.00313.25
7.0.270.0390.00513.53
7.0.260.0580.01013.30
7.0.250.0560.01213.51
7.0.240.0510.00815.72
7.0.230.0270.00616.31
7.0.220.0250.01016.33
7.0.210.0220.00815.67
7.0.200.0140.01315.60
7.0.190.0190.00915.51
7.0.180.0380.00615.30
7.0.170.0190.00915.21
7.0.160.0200.00915.31
7.0.150.0230.01015.20
7.0.140.0310.00715.36
7.0.130.0220.01115.57
7.0.120.0190.01015.40
7.0.110.0280.01015.27
7.0.100.0260.00815.35
7.0.90.0290.01015.21
7.0.80.0270.01015.37
7.0.70.0260.00815.24
7.0.60.0250.00715.15
7.0.50.0320.01015.25
7.0.40.0210.01115.44
7.0.30.0220.00715.52
7.0.20.0230.00815.38
7.0.10.0220.01115.32
7.0.00.0210.01415.41
5.6.380.0070.01814.25
5.6.370.0040.01414.18
5.6.360.0140.00714.00
5.6.350.0120.01214.29
5.6.340.0000.01814.18
5.6.330.0070.01514.50
5.6.320.0110.01114.10
5.6.310.0140.00914.23
5.6.300.0160.04518.65
5.6.290.0090.04618.68
5.6.280.0120.05018.64
5.6.270.0140.05118.53
5.6.260.0160.05018.76
5.6.250.0170.04518.72
5.6.240.0140.05218.55
5.6.230.0120.05018.67
5.6.220.0070.04518.57
5.6.210.0160.04218.59
5.6.200.0140.04118.63
5.6.190.0120.04618.55
5.6.180.0090.05018.64
5.6.170.0140.04018.69
5.6.160.0100.04818.55
5.6.150.0110.05018.66
5.6.140.0150.04918.48
5.6.130.0140.04918.58
5.6.120.0150.05318.59
5.6.110.0130.05518.57
5.6.100.0130.05218.58
5.6.90.0080.06118.62
5.6.80.0150.04318.34
5.6.70.0100.05018.16
5.6.60.0080.05118.33
5.6.50.0140.03618.20
5.6.40.0090.05018.20
5.6.30.0120.04418.14
5.6.20.0160.04318.13
5.6.10.0170.04018.09
5.6.00.0110.04518.20
5.5.380.0120.05115.33
5.5.370.0120.04115.43
5.5.360.0100.04515.40
5.5.350.0100.03815.34
5.5.340.0110.04615.79
5.5.330.0100.03815.64
5.5.320.0110.04215.60
5.5.310.0080.04515.62
5.5.300.0050.05215.58
5.5.290.0090.04915.52
5.5.280.0100.05515.58
5.5.270.0090.04415.78
5.5.260.0120.05615.50
5.5.250.0110.04915.55
5.5.240.0110.03815.12
5.5.230.0100.05415.26
5.5.220.0060.04515.39
5.5.210.0110.04015.33
5.5.200.0100.04615.21
5.5.190.0090.04815.11
5.5.180.0170.03915.26
5.5.170.0110.00714.14
5.5.160.0110.04115.07
5.5.150.0060.04615.26
5.5.140.0100.04215.30
5.5.130.0100.04715.20
5.5.120.0110.04515.16
5.5.110.0100.04415.08
5.5.100.0120.03815.13
5.5.90.0170.03415.21
5.5.80.0140.03215.11
5.5.70.0110.04415.15
5.5.60.0120.04215.12
5.5.50.0130.04815.22
5.5.40.0060.05415.16
5.5.30.0090.04615.09
5.5.20.0120.04115.27
5.5.10.0090.04015.17
5.5.00.0170.03615.11
5.4.450.0110.04816.57
5.4.440.0050.05416.55
5.4.430.0130.04516.61
5.4.420.0130.05116.67
5.4.410.0120.04616.46
5.4.400.0090.04316.32
5.4.390.0090.04516.39
5.4.380.0070.03916.31
5.4.370.0120.04116.38
5.4.360.0050.04816.33
5.4.350.0070.05116.42
5.4.340.0110.04416.37
5.4.330.0090.00310.77
5.4.320.0130.04216.23
5.4.310.0140.04016.26
5.4.300.0130.03916.15
5.4.290.0070.04816.29
5.4.280.0140.04116.32
5.4.270.0100.04716.27
5.4.260.0110.03716.35
5.4.250.0110.03616.33
5.4.240.0090.03916.14
5.4.230.0130.04316.42
5.4.220.0080.05316.33
5.4.210.0140.04016.19
5.4.200.0120.04616.21
5.4.190.0130.04516.20
5.4.180.0110.04116.30
5.4.170.0090.04016.34
5.4.160.0150.04016.32
5.4.150.0140.04416.35
5.4.140.0080.04714.80
5.4.130.0100.04714.68
5.4.120.0030.04714.82
5.4.110.0130.03714.70
5.4.100.0080.03814.62
5.4.90.0110.04214.81
5.4.80.0150.04314.68
5.4.70.0120.04314.69
5.4.60.0090.04114.77
5.4.50.0130.03714.71
5.4.40.0060.04114.59
5.4.30.0070.04114.71
5.4.20.0110.03714.66
5.4.10.0120.03814.71
5.4.00.0120.03914.43
5.3.290.0110.04013.41
5.3.280.0110.03913.14
5.3.270.0100.04013.31
5.3.260.0140.04013.23
5.3.250.0090.04113.26
5.3.240.0050.04613.18
5.3.230.0110.04413.08
5.3.220.0090.04113.11
5.3.210.0110.04413.27
5.3.200.0090.03713.12
5.3.190.0120.04513.23
5.3.180.0140.04413.30
5.3.170.0100.03913.36
5.3.160.0070.03813.26
5.3.150.0130.04213.30
5.3.140.0130.03713.26
5.3.130.0100.03913.16
5.3.120.0060.04413.17
5.3.110.0090.03613.22
5.3.100.0100.03812.93
5.3.90.0040.04512.97
5.3.80.0050.04012.85
5.3.70.0120.03612.84
5.3.60.0090.03812.84
5.3.50.0130.03312.69
5.3.40.0160.03812.77
5.3.30.0060.04712.83
5.3.20.0080.04412.47
5.3.10.0130.03312.54
5.3.00.0120.03412.44
5.2.170.0070.03510.69
5.2.160.0110.03410.65
5.2.150.0100.03810.54
5.2.140.0070.03510.59
5.2.130.0110.03410.46
5.2.120.0090.03210.58
5.2.110.0080.03510.50
5.2.100.0090.03310.54
5.2.90.0090.03510.50
5.2.80.0070.03410.54
5.2.70.0050.03810.61
5.2.60.0060.03110.60
5.2.50.0050.03610.52
5.2.40.0080.03110.48
5.2.30.0100.03410.49
5.2.20.0090.03410.42
5.2.10.0050.03310.25
5.2.00.0070.03210.10
5.1.60.0090.0229.68
5.1.50.0020.0299.71
5.1.40.0130.0219.67
5.1.30.0080.0279.96
5.1.20.0070.0269.90
5.1.10.0050.0299.77
5.1.00.0090.0299.75
5.0.50.0060.0228.71
5.0.40.0080.0198.71
5.0.30.0060.0358.50
5.0.20.0020.0238.59
5.0.10.0060.0198.48
5.0.00.0070.0328.46
4.4.90.0040.0207.29
4.4.80.0040.0177.29
4.4.70.0030.0217.29
4.4.60.0060.0177.29
4.4.50.0080.0167.29
4.4.40.0030.0297.29
4.4.30.0030.0177.29
4.4.20.0060.0187.29
4.4.10.0060.0167.29
4.4.00.0030.0237.29
4.3.110.0070.0167.29
4.3.100.0040.0167.29
4.3.90.0020.0167.29
4.3.80.0040.0257.29
4.3.70.0070.0147.29
4.3.60.0050.0137.29
4.3.50.0040.0167.29
4.3.40.0050.0227.29
4.3.30.0040.0177.29
4.3.20.0040.0187.29
4.3.10.0000.0187.29
4.3.00.0030.0187.29

preferences:
19.1 ms | 403 KiB | 5 Q