3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function callMeh(Foo $foo) { $foo->meh(); } protected function meh() { var_dump('Calling in base class'); } } trait Bar { public function meh() { var_dump('Calling in trait'); } } class Baz extends Foo { use Bar; } Foo::callMeh(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.0080.00818.18
8.3.50.0090.01022.11
8.3.40.0090.00618.84
8.3.30.0110.00419.08
8.3.20.0070.00020.38
8.3.10.0080.00021.84
8.3.00.0040.00422.36
8.2.180.0070.01016.37
8.2.170.0180.00322.96
8.2.160.0130.00320.80
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00017.50
8.2.110.0090.00020.36
8.2.100.0080.00317.72
8.2.90.0040.00417.63
8.2.80.0050.00318.64
8.2.70.0050.00317.38
8.2.60.0090.00017.50
8.2.50.0040.00417.50
8.2.40.0000.00817.68
8.2.30.0040.00718.04
8.2.20.0050.00317.64
8.2.10.0050.00217.70
8.2.00.0030.00617.71
8.1.280.0090.00625.92
8.1.270.0050.00322.02
8.1.260.0040.00426.35
8.1.250.0140.00028.09
8.1.240.0080.00023.96
8.1.230.0080.00320.75
8.1.220.0060.00317.74
8.1.210.0000.00918.77
8.1.200.0050.00317.23
8.1.190.0030.00516.98
8.1.180.0000.00718.10
8.1.170.0030.00617.62
8.1.160.0100.00022.04
8.1.150.0000.00718.48
8.1.140.0030.00617.43
8.1.130.0000.00817.75
8.1.120.0000.01017.43
8.1.110.0070.00017.43
8.1.100.0000.00717.42
8.1.90.0040.00417.34
8.1.80.0030.00417.42
8.1.70.0040.00417.36
8.1.60.0030.00617.52
8.1.50.0040.00417.43
8.1.40.0040.00417.35
8.1.30.0000.00717.60
8.1.20.0000.00917.53
8.1.10.0040.00417.41
8.1.00.0030.00617.22
8.0.300.0070.00019.79
8.0.290.0060.00316.75
8.0.280.0030.00518.48
8.0.270.0040.00417.20
8.0.260.0000.00616.99
8.0.250.0040.00417.01
8.0.240.0000.00816.87
8.0.230.0040.00317.03
8.0.220.0050.00316.96
8.0.210.0030.00316.95
8.0.200.0030.00317.03
8.0.190.0080.00016.96
8.0.180.0040.00416.88
8.0.170.0000.00716.99
8.0.160.0000.00716.95
8.0.150.0030.00316.73
8.0.140.0000.00716.88
8.0.130.0000.00613.31
8.0.120.0040.00416.95
8.0.110.0000.00716.86
8.0.100.0030.00516.86
8.0.90.0040.00416.70
8.0.80.0070.00716.89
8.0.70.0080.00016.78
8.0.60.0040.00416.91
8.0.50.0070.00016.92
8.0.30.0130.00616.98
8.0.20.0070.01017.40
8.0.10.0080.00017.11
8.0.00.0150.00316.79
7.4.330.0000.00515.00
7.4.320.0000.00616.36
7.4.300.0070.00016.45
7.4.290.0000.00816.42
7.4.280.0100.00016.38
7.4.270.0030.00316.49
7.4.260.0030.00316.36
7.4.250.0050.00316.50
7.4.240.0020.00516.44
7.4.230.0030.00316.24
7.4.220.0130.00316.52
7.4.210.0070.01016.48
7.4.200.0000.00716.57
7.4.190.0030.00316.39
7.4.160.0030.01316.48
7.4.150.0140.00517.40
7.4.140.0060.01417.86
7.4.130.0060.01216.47
7.4.120.0140.00516.46
7.4.110.0090.00616.46
7.4.100.0100.00716.47
7.4.90.0090.00916.46
7.4.80.0130.00419.39
7.4.70.0080.00816.52
7.4.60.0030.01316.41
7.4.50.0030.00616.35
7.4.40.0030.00922.77
7.4.30.0100.01016.60
7.4.00.0050.01114.82
7.3.330.0040.00413.25
7.3.320.0030.00313.29
7.3.310.0070.00016.24
7.3.300.0000.00716.25
7.3.290.0070.01016.30
7.3.280.0100.00916.28
7.3.270.0060.01217.40
7.3.260.0060.01216.54
7.3.250.0090.00716.29
7.3.240.0130.00316.28
7.3.230.0100.00616.39
7.3.210.0090.00916.57
7.3.200.0030.01819.39
7.3.190.0070.01416.09
7.3.180.0110.00416.23
7.3.170.0130.00316.59
7.3.160.0090.01216.41
7.3.120.0110.00614.85
7.3.110.0040.01115.04
7.3.100.0110.00014.77
7.3.90.0060.01014.62
7.3.80.0090.00614.63
7.3.70.0030.00614.73
7.3.60.0000.01214.70
7.3.50.0060.00914.82
7.3.40.0050.00514.82
7.3.30.0040.01114.79
7.3.20.0110.00416.62
7.3.10.0000.01016.39
7.3.00.0030.01316.39
7.2.330.0100.00716.68
7.2.320.0070.01016.48
7.2.310.0100.01016.48
7.2.300.0060.01016.61
7.2.290.0110.00616.21
7.2.250.0030.01215.05
7.2.240.0140.00415.00
7.2.230.0040.01115.20
7.2.220.0030.00914.86
7.2.210.0040.01515.02
7.2.200.0030.01114.75
7.2.190.0030.01014.87
7.2.180.0120.00314.97
7.2.170.0000.01414.88
7.2.60.0030.00916.56
7.2.00.0100.00319.10
7.1.330.0090.00615.42
7.1.320.0030.01015.59
7.1.310.0030.00615.77
7.1.300.0090.00615.72
7.1.290.0100.00315.76
7.1.280.0000.01515.68
7.1.270.0080.00815.68
7.1.260.0100.00315.91
7.1.200.0070.00015.67
7.1.100.0090.00317.95
7.1.70.0070.00016.73
7.1.60.0100.01019.82
7.1.50.0100.01016.80
7.1.00.0070.07322.37
7.0.200.0100.00516.82
7.0.140.0000.07722.00
7.0.100.0100.04320.02
7.0.90.0100.07319.97
7.0.80.0000.06719.91
7.0.70.0130.06019.93
7.0.60.0400.07719.88
7.0.50.0130.08720.30
7.0.40.0030.06020.04
7.0.30.0070.08320.14
7.0.20.0130.04020.06
7.0.10.0030.05020.13
7.0.00.0070.08320.02
5.6.280.0000.07721.13
5.6.250.0170.07020.54
5.6.240.0070.07720.70
5.6.230.0130.08320.50
5.6.220.0100.07720.59
5.6.210.0130.06020.62
5.6.200.0070.09321.02
5.6.190.0070.04021.11
5.6.180.0030.04721.07
5.6.170.0070.08721.16
5.6.160.0030.08020.93
5.6.150.0070.05020.93
5.6.140.0030.07320.95
5.6.130.0070.08321.01
5.6.120.0030.06321.09
5.6.110.0070.08321.09
5.6.100.0070.05320.93
5.6.90.0130.05721.02
5.6.80.0030.05720.42
5.6.70.0070.08020.45
5.6.60.0000.04320.38
5.6.50.0030.08020.44
5.6.40.0070.06020.39
5.6.30.0030.08020.29
5.6.20.0130.06720.35
5.6.10.0030.05020.38
5.6.00.0130.07320.37
5.5.380.0130.07020.40
5.5.370.0070.07020.38
5.5.360.0000.08720.37
5.5.350.0130.07320.39
5.5.340.0000.05320.88
5.5.330.0030.04720.77
5.5.320.0100.05720.88
5.5.310.0070.07720.64
5.5.300.0000.08020.78
5.5.290.0170.07020.83
5.5.280.0030.10320.80
5.5.270.0100.08320.79
5.5.260.0070.06320.82
5.5.250.0130.07320.57
5.5.240.0130.06720.29
5.5.230.0100.04020.14
5.5.220.0100.07720.27
5.5.210.0070.07720.30
5.5.200.0100.07320.15
5.5.190.0030.04720.24
5.5.180.0030.08320.24
5.5.160.0000.05020.23
5.5.150.0070.04320.21
5.5.140.0130.03720.18
5.5.130.0070.06020.14
5.5.120.0130.03020.22
5.5.110.0100.04020.18
5.5.100.0030.04020.05
5.5.90.0030.04020.05
5.5.80.0070.03720.00
5.5.70.0100.04320.03
5.5.60.0100.03319.95
5.5.50.0070.03320.08
5.5.40.0030.03720.05
5.5.30.0070.03720.13
5.5.20.0030.04319.88
5.5.10.0070.03319.96
5.5.00.0030.04319.97
5.4.450.0130.07019.28
5.4.440.0100.07719.37
5.4.430.0070.07319.57
5.4.420.0100.07719.39
5.4.410.0100.08319.23
5.4.400.0100.06319.18
5.4.390.0070.04019.23
5.4.380.0130.06019.13
5.4.370.0100.07018.94
5.4.360.0170.06718.89
5.4.350.0070.05019.05
5.4.340.0070.08319.16
5.4.320.0070.07718.94
5.4.310.0030.06019.04
5.4.300.0070.04019.13
5.4.290.0100.05019.08
5.4.280.0030.04019.05
5.4.270.0030.04318.87
5.4.260.0030.04319.22
5.4.250.0070.03718.90
5.4.240.0030.04019.13
5.4.230.0070.03719.04
5.4.220.0030.04019.15
5.4.210.0000.04719.02
5.4.200.0000.07019.04
5.4.190.0070.03319.03
5.4.180.0030.04318.97
5.4.170.0130.04319.22
5.4.160.0000.04019.02
5.4.150.0000.03719.00
5.4.140.0070.03016.44
5.4.130.0030.04016.38
5.4.120.0000.04016.41
5.4.110.0070.03316.49
5.4.100.0030.03316.56
5.4.90.0030.03716.37
5.4.80.0030.05016.53
5.4.70.0070.03316.54
5.4.60.0030.03716.32
5.4.50.0030.03716.50
5.4.40.0070.03016.50
5.4.30.0000.04316.31
5.4.20.0070.03316.26
5.4.10.0030.03716.30
5.4.00.0100.03015.82
5.3.290.0070.06714.73
5.3.280.0130.03014.73
5.3.270.0070.03014.66
5.3.260.0070.04314.74
5.3.250.0030.03714.61
5.3.240.0000.03714.64
5.3.230.0000.04014.62
5.3.220.0070.03714.64
5.3.210.0070.03014.60
5.3.200.0070.03314.50
5.3.190.0030.04014.60
5.3.180.0070.03314.49
5.3.170.0030.03714.55
5.3.160.0030.03714.70
5.3.150.0030.04314.59
5.3.140.0030.03314.54
5.3.130.0000.04014.54
5.3.120.0030.05014.64
5.3.110.0070.03714.55
5.3.100.0070.03313.97
5.3.90.0100.03313.95
5.3.80.0030.03714.04
5.3.70.0070.03313.91
5.3.60.0000.04014.07
5.3.50.0030.05013.97
5.3.40.0000.04014.04
5.3.30.0030.03713.96
5.3.20.0030.03313.71
5.3.10.0030.04313.68
5.3.00.0070.04013.56
5.2.170.0030.02711.28
5.2.160.0000.03011.05
5.2.150.0030.03311.21
5.2.140.0030.03311.20
5.2.130.0000.03011.21
5.2.120.0030.02711.15
5.2.110.0030.03011.21
5.2.100.0100.02311.00
5.2.90.0030.03711.13
5.2.80.0070.05011.12
5.2.70.0000.03311.00
5.2.60.0000.05011.11
5.2.50.0070.05710.92
5.2.40.0070.05010.93
5.2.30.0030.06710.98
5.2.20.0070.05310.87
5.2.10.0030.02310.92
5.2.00.0030.06010.78
5.1.60.0030.0509.89
5.1.50.0000.0579.99
5.1.40.0030.02710.09
5.1.30.0070.05710.46
5.1.20.0070.04010.41
5.1.10.0000.06310.14
5.1.00.0070.05310.08
5.0.50.0070.0338.45
5.0.40.0070.0408.52
5.0.30.0070.0638.29
5.0.20.0030.0338.13
5.0.10.0000.0438.25
5.0.00.0000.0638.13
4.4.90.0000.0178.13
4.4.80.0000.0238.13
4.4.70.0000.0238.13
4.4.60.0030.0338.13
4.4.50.0070.0308.13
4.4.40.0030.0478.13
4.4.30.0000.0378.13
4.4.20.0000.0378.13
4.4.10.0030.0338.13
4.4.00.0100.0438.13
4.3.110.0100.0308.13
4.3.100.0000.0338.13
4.3.90.0030.0308.13
4.3.80.0000.0538.13
4.3.70.0070.0278.13
4.3.60.0070.0308.13
4.3.50.0030.0178.13
4.3.40.0070.0438.13
4.3.30.0000.0208.13
4.3.20.0070.0138.13
4.3.10.0000.0378.13
4.3.00.0000.0338.13

preferences:
53.06 ms | 401 KiB | 5 Q