3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function callFoo(Foo $foo) { $foo->foo(); } protected function foo() { var_dump('Calling in base class'); } } trait Bar { public function foo() { var_dump('Calling in trait'); } } class Baz extends Foo { // use Bar; } Foo::callFoo(new Baz());

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.0150.00318.19
8.3.50.0100.00317.90
8.3.40.0200.00018.80
8.3.30.0130.00319.09
8.3.20.0000.00720.16
8.3.10.0040.00422.09
8.3.00.0000.00722.43
8.2.180.0070.00716.38
8.2.170.0170.00318.59
8.2.160.0110.00722.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00017.25
8.2.110.0060.00322.08
8.2.100.0000.01219.30
8.2.90.0040.00419.10
8.2.80.0060.00617.97
8.2.70.0050.00317.50
8.2.60.0040.00417.75
8.2.50.0080.00018.07
8.2.40.0000.00818.03
8.2.30.0050.00317.92
8.2.20.0070.00017.45
8.2.10.0030.00517.66
8.2.00.0000.00817.55
8.1.270.0030.00622.18
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00423.72
8.1.230.0040.00719.03
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0040.00417.26
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00821.86
8.1.150.0080.00018.43
8.1.140.0040.00417.28
8.1.130.0040.00417.17
8.1.120.0000.00817.24
8.1.110.0040.00417.35
8.1.100.0030.00317.20
8.1.90.0000.00717.27
8.1.80.0040.00417.36
8.1.70.0000.00717.32
8.1.60.0060.00317.48
8.1.50.0060.00317.33
8.1.40.0050.00317.41
8.1.30.0040.00417.58
8.1.20.0030.00517.61
8.1.10.0040.00417.43
8.1.00.0020.00517.31
8.0.300.0000.00718.77
8.0.290.0070.00017.05
8.0.280.0030.00318.29
8.0.270.0050.00317.06
8.0.260.0060.00016.66
8.0.250.0040.00416.85
8.0.240.0040.00417.01
8.0.230.0030.00316.83
8.0.220.0030.00316.82
8.0.210.0000.00716.84
8.0.200.0040.00416.82
8.0.190.0030.00616.93
8.0.180.0070.00016.80
8.0.170.0000.00816.90
8.0.160.0050.00216.83
8.0.150.0060.00316.76
8.0.140.0000.00716.78
8.0.130.0030.00313.26
8.0.120.0040.00416.75
8.0.110.0020.00616.70
8.0.100.0050.00216.68
8.0.90.0030.00516.71
8.0.80.0090.00616.78
8.0.70.0080.00016.79
8.0.60.0070.00016.83
8.0.50.0000.00716.64
8.0.30.0130.00617.02
8.0.20.0090.01317.40
8.0.10.0000.00716.96
8.0.00.0120.01016.63
7.4.330.0000.00415.00
7.4.320.0030.00316.29
7.4.300.0060.00016.39
7.4.290.0070.00016.44
7.4.280.0060.00316.45
7.4.270.0000.00716.50
7.4.260.0030.00716.40
7.4.250.0080.00016.51
7.4.240.0020.00516.51
7.4.230.0000.00716.61
7.4.220.0120.00316.62
7.4.210.0090.00916.57
7.4.200.0000.00816.42
7.4.190.0030.00416.51
7.4.160.0100.00616.26
7.4.150.0040.01317.40
7.4.140.0100.00817.86
7.4.130.0120.00816.50
7.4.120.0110.00816.58
7.4.110.0110.00716.37
7.4.100.0120.00616.31
7.4.90.0130.00316.34
7.4.80.0070.01019.39
7.4.70.0110.00716.55
7.4.60.0110.00516.40
7.4.50.0040.00016.20
7.4.40.0030.01022.77
7.4.30.0090.00916.65
7.4.00.0100.00614.78
7.3.330.0030.00313.35
7.3.320.0000.00513.21
7.3.310.0030.00316.21
7.3.300.0040.00416.33
7.3.290.0060.01216.30
7.3.280.0090.00616.36
7.3.270.0130.00317.40
7.3.260.0120.00916.51
7.3.250.0110.00616.53
7.3.240.0080.00816.54
7.3.230.0030.01516.39
7.3.210.0030.01316.43
7.3.200.0040.01519.39
7.3.190.0150.00916.58
7.3.180.0160.00016.43
7.3.170.0060.00916.34
7.3.160.0030.02016.45
7.3.120.0000.01414.84
7.3.10.0100.00316.53
7.3.00.0000.00916.55
7.2.330.0150.00316.46
7.2.320.0070.01016.22
7.2.310.0070.01016.59
7.2.300.0080.00816.30
7.2.290.0060.01016.66
7.2.130.0030.00716.82
7.2.120.0070.00716.64
7.2.110.0040.01116.85
7.2.100.0030.01016.59
7.2.90.0040.00816.85
7.2.80.0070.00716.86
7.2.70.0070.00416.79
7.2.60.0070.00916.75
7.2.50.0030.00916.61
7.2.40.0040.00716.68
7.2.30.0040.00716.86
7.2.20.0090.00616.68
7.2.10.0040.00816.78
7.2.00.0030.01018.06
7.1.250.0000.01015.70
7.1.200.0000.00715.70
7.1.100.0080.00818.08
7.1.70.0120.00616.64
7.1.60.0100.01419.82
7.1.50.0030.01416.62
7.1.00.0100.07022.44
7.0.200.0080.00416.80
7.0.140.0030.07322.04
7.0.60.0100.04319.93
7.0.50.0000.07317.88
7.0.40.0070.04320.10
7.0.30.0130.04720.26
7.0.20.0200.05020.11
7.0.10.0470.07020.09
7.0.00.0100.03720.26
5.6.280.0070.07020.90
5.6.210.0130.08020.71
5.6.200.0070.07718.18
5.6.190.0030.09320.63
5.6.180.0270.06720.38
5.6.170.0330.07020.51
5.6.160.0070.08320.46
5.6.150.0130.07318.15
5.6.140.0000.04718.16
5.6.130.0070.04018.23
5.6.120.0030.09021.12
5.6.110.0000.05721.07
5.6.100.0100.08321.11
5.6.90.0070.06321.00
5.6.80.0130.07720.38
5.6.70.0230.07320.41
5.5.350.0200.03720.53
5.5.340.0030.04017.98
5.5.330.0100.08320.37
5.5.320.0070.05020.41
5.5.310.0430.07020.37
5.5.300.0000.06318.08
5.5.290.0100.04717.95
5.5.280.0200.04320.78
5.5.270.0000.04320.76
5.5.260.0170.04720.87
5.5.250.0030.08320.59
5.5.240.0070.05720.16
5.4.450.0570.04719.57
5.4.440.0530.04719.52
5.4.430.1000.03019.30
5.4.420.0600.04019.45
5.4.410.0500.05719.51
5.4.400.0400.04018.84
5.4.390.0630.03319.08
5.4.380.0470.05718.82
5.4.370.0500.04318.61
5.4.360.0370.05018.51
5.4.350.0200.06318.54
5.4.340.0270.05318.80
5.4.320.0110.03512.51
5.4.310.0070.03712.51
5.4.300.0080.04312.51
5.4.290.0080.04412.50
5.4.280.0100.03512.40
5.4.270.0100.05019.03
5.4.260.0130.07019.18
5.4.250.0070.05718.99
5.4.240.0070.05719.07
5.4.230.0100.05318.89
5.4.220.0030.06019.18
5.4.210.0170.04318.84
5.4.200.0100.06318.93
5.4.190.0130.05018.94
5.4.180.0200.06318.98
5.4.170.0170.06319.02
5.4.160.0100.05018.97
5.4.150.0070.05718.93
5.4.140.0200.06716.77
5.4.130.0070.06016.73
5.4.120.0100.07016.71
5.4.110.0000.07716.69
5.4.100.0070.05316.70
5.4.90.0070.05316.73
5.4.80.0100.05716.71
5.4.70.0100.06016.72
5.4.60.0130.04316.50
5.4.50.0100.05016.38
5.4.40.0100.06716.43
5.4.30.0170.05716.64
5.4.20.0070.07316.29
5.4.10.0130.07016.60
5.4.00.0130.05015.85
5.3.290.0080.04412.80
5.3.280.0070.07714.67
5.3.270.0170.05314.68
5.3.260.0170.06714.88
5.3.250.0100.05314.87
5.3.240.0130.05014.82
5.3.230.0070.07314.66
5.3.220.0130.07714.86
5.3.210.0070.06314.84
5.3.200.0070.05314.45
5.3.190.0070.05314.74
5.3.180.0130.05014.61
5.3.170.0130.05314.83
5.3.160.0170.06314.62
5.3.150.0200.04714.87
5.3.140.0230.06314.61
5.3.130.0000.08014.67
5.3.120.0130.04714.82
5.3.110.0130.06314.85
5.3.100.0030.07714.30
5.3.90.0000.06014.32
5.3.80.0070.05014.23
5.3.70.0100.05013.90
5.3.60.0200.06014.29
5.3.50.0170.04314.01
5.3.40.0170.05314.17
5.3.30.0130.04713.97
5.3.20.0070.05713.89
5.3.10.0330.03713.94
5.3.00.0030.07013.95
5.2.170.0070.04011.43
5.2.160.0100.04011.19
5.2.150.0170.04711.14
5.2.140.0070.04311.34
5.2.130.0100.05011.38
5.2.120.0100.05011.10
5.2.110.0000.04311.28
5.2.100.0130.05011.29
5.2.90.0070.04311.28
5.2.80.0030.06311.38
5.2.70.0000.04711.09
5.2.60.0130.04711.06
5.2.50.0100.04310.99
5.2.40.0100.04711.22
5.2.30.0070.04711.16
5.2.20.0030.04711.01
5.2.10.0200.03710.86
5.2.00.0100.03710.94
5.1.60.0100.04010.26
5.1.50.0200.0539.88
5.1.40.0070.04710.19
5.1.30.0000.04310.55
5.1.20.0030.04010.47
5.1.10.0070.03310.12
5.1.00.0030.05010.22
5.0.50.0130.0308.73
5.0.40.0070.0278.63
5.0.30.0030.0508.47
5.0.20.0000.0308.49
5.0.10.0000.0338.43
5.0.00.0030.0438.25
4.4.90.0000.0307.39
4.4.80.0030.0207.39
4.4.70.0000.0237.39
4.4.60.0000.0237.39
4.4.50.0030.0207.39
4.4.40.0000.0337.39
4.4.30.0030.0277.39
4.4.20.0000.0337.39
4.4.10.0070.0207.39
4.4.00.0070.0337.39
4.3.110.0070.0177.39
4.3.100.0100.0207.39
4.3.90.0000.0307.39
4.3.80.0100.0337.39
4.3.70.0030.0207.39
4.3.60.0070.0177.39
4.3.50.0070.0237.39
4.3.40.0030.0407.39
4.3.30.0030.0307.39
4.3.20.0070.0237.39
4.3.10.0070.0237.39
4.3.00.0030.01715.58

preferences:
36.34 ms | 400 KiB | 5 Q