3v4l.org

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

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.0140.00718.18
8.3.50.0060.00822.10
8.3.40.0070.01018.84
8.3.30.0140.00318.96
8.3.20.0000.00720.29
8.3.10.0040.00422.08
8.3.00.0070.00022.39
8.2.180.0070.00716.32
8.2.170.0090.00622.96
8.2.160.0040.01120.86
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00817.25
8.2.110.0040.00422.25
8.2.100.0090.00319.32
8.2.90.0080.00019.01
8.2.80.0090.00317.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0080.00018.22
8.2.30.0070.00017.91
8.2.20.0070.00017.46
8.2.10.0030.00617.55
8.2.00.0030.00617.54
8.1.280.0090.00925.92
8.1.270.0040.00422.19
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0040.00423.88
8.1.230.0070.00319.15
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0070.00317.13
8.1.190.0000.00817.53
8.1.180.0000.00718.10
8.1.170.0000.00818.45
8.1.160.0080.00321.87
8.1.150.0000.00718.48
8.1.140.0040.00419.43
8.1.130.0050.00217.77
8.1.120.0060.00617.33
8.1.110.0030.00517.42
8.1.100.0000.00717.41
8.1.90.0030.00517.20
8.1.80.0000.00717.28
8.1.70.0030.00317.36
8.1.60.0050.00317.41
8.1.50.0040.00417.49
8.1.40.0000.00717.43
8.1.30.0000.00817.50
8.1.20.0030.00517.61
8.1.10.0040.00417.46
8.1.00.0000.00817.43
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00718.50
8.0.270.0080.00016.73
8.0.260.0000.00616.81
8.0.250.0000.00716.95
8.0.240.0050.00216.80
8.0.230.0000.00716.85
8.0.220.0070.00016.72
8.0.210.0000.00716.74
8.0.200.0000.00716.95
8.0.190.0070.00016.93
8.0.180.0000.00716.86
8.0.170.0040.00416.89
8.0.160.0000.00716.77
8.0.150.0040.00716.74
8.0.140.0070.00016.80
8.0.130.0060.00013.24
8.0.120.0000.00916.75
8.0.110.0000.00716.73
8.0.100.0000.00716.71
8.0.90.0040.00416.68
8.0.80.0060.00916.80
8.0.70.0000.00716.63
8.0.60.0030.00516.89
8.0.50.0050.00316.87
8.0.30.0130.01016.97
8.0.20.0110.01117.40
8.0.10.0040.00416.80
8.0.00.0100.00916.67
7.4.330.0050.00015.00
7.4.320.0000.00616.39
7.4.300.0030.00316.53
7.4.290.0040.00416.36
7.4.280.0030.00616.55
7.4.270.0030.00316.52
7.4.260.0030.00316.56
7.4.250.0000.00716.30
7.4.240.0020.00616.38
7.4.230.0040.00416.64
7.4.220.0110.00416.39
7.4.210.0070.00816.47
7.4.200.0000.00716.33
7.4.190.0060.00316.60
7.4.160.0090.00616.71
7.4.150.0110.01117.40
7.4.140.0130.00517.86
7.4.130.0100.01016.37
7.4.120.0110.00716.59
7.4.110.0110.00516.64
7.4.100.0150.00316.34
7.4.90.0120.00416.41
7.4.80.0090.00819.39
7.4.70.0100.00716.63
7.4.60.0100.00716.50
7.4.50.0020.00216.41
7.4.40.0030.01322.77
7.4.30.0090.01216.61
7.4.00.0030.01014.73
7.3.330.0050.00213.20
7.3.320.0000.00513.28
7.3.310.0040.00416.38
7.3.300.0000.00716.22
7.3.290.0170.00316.38
7.3.280.0130.00516.32
7.3.270.0090.00817.40
7.3.260.0180.00916.30
7.3.250.0050.01216.61
7.3.240.0190.00316.57
7.3.230.0130.00316.39
7.3.210.0060.01216.23
7.3.200.0150.00719.39
7.3.190.0100.01016.64
7.3.180.0060.01016.25
7.3.170.0090.00616.29
7.3.160.0130.00316.34
7.3.120.0030.01214.88
7.2.330.0090.00916.63
7.2.320.0130.01016.61
7.2.310.0040.01316.55
7.2.300.0060.01016.61
7.2.290.0030.01316.54
7.2.60.0000.01316.68
7.2.00.0070.00719.24
7.1.200.0060.00615.71
7.1.100.0000.01418.18
7.1.70.0040.01116.89
7.1.60.0070.01319.82
7.1.50.0070.01016.73
7.1.00.0030.07322.37
7.0.200.0060.00616.55
7.0.140.0070.07022.00
7.0.100.0030.08319.90
7.0.90.0100.07720.03
7.0.80.0230.07719.93
7.0.70.0330.09019.88
7.0.60.0430.07019.98
7.0.50.0370.08020.30
7.0.40.0030.05319.95
7.0.30.0030.08720.09
7.0.20.0100.08719.98
7.0.10.0030.07319.97
7.0.00.0130.07720.14
5.6.280.0000.07721.09
5.6.250.0100.07320.61
5.6.240.0070.08320.55
5.6.230.0130.07720.70
5.6.220.0100.08020.62
5.6.210.0000.06020.49
5.6.200.0070.05021.07
5.6.190.0030.09021.07
5.6.180.0200.06721.04
5.6.170.0070.08721.07
5.6.160.0130.06021.05
5.6.150.0130.07020.95
5.6.140.0100.08021.01
5.6.130.0170.07721.00
5.6.120.0130.07021.05
5.6.110.0130.04321.06
5.6.100.0030.08721.02
5.6.90.0100.07320.93
5.6.80.0070.08020.38
5.6.70.0100.07020.49
5.6.60.0070.04720.39
5.6.50.0070.07720.45
5.6.40.0100.07720.26
5.6.30.0070.06720.39
5.6.20.0030.07720.38
5.6.10.0200.06720.31
5.6.00.0030.05020.43
5.5.380.0030.08020.51
5.5.370.0100.08020.40
5.5.360.0000.05020.35
5.5.350.0070.08020.38
5.5.340.0130.07020.84
5.5.330.0200.06020.94
5.5.320.0070.07020.90
5.5.310.0030.08320.84
5.5.300.0070.08320.87
5.5.290.0100.08020.91
5.5.280.0100.08320.63
5.5.270.0000.08020.93
5.5.260.0070.08720.77
5.5.250.0130.07320.64
5.5.240.0130.07320.33
5.5.230.0130.04720.28
5.5.220.0100.08020.02
5.5.210.0070.06320.21
5.5.200.0100.07020.29
5.5.190.0100.07020.22
5.5.180.0070.07720.00
5.5.160.0070.08020.22
5.5.150.0070.07020.26
5.5.140.0000.09020.29
5.5.130.0030.07720.14
5.5.120.0070.04320.21
5.5.110.0070.04020.21
5.5.100.0130.04720.08
5.5.90.0070.03719.95
5.5.80.0070.03720.16
5.5.70.0030.04319.95
5.5.60.0000.04320.16
5.5.50.0030.03720.16
5.5.40.0000.04020.16
5.5.30.0200.02320.09
5.5.20.0070.03719.93
5.5.10.0100.05020.14
5.5.00.0000.04020.04
5.4.450.0130.07019.21
5.4.440.0100.04319.36
5.4.430.0230.04719.29
5.4.420.0070.06319.46
5.4.410.0100.07719.23
5.4.400.0170.07019.10
5.4.390.0100.07019.09
5.4.380.0130.06319.14
5.4.370.0030.08318.92
5.4.360.0100.08019.10
5.4.350.0100.06719.10
5.4.340.0070.08019.13
5.4.320.0100.06019.09
5.4.310.0100.08019.09
5.4.300.0130.07019.03
5.4.290.0100.07319.14
5.4.280.0130.07318.88
5.4.270.0100.05719.09
5.4.260.0030.04719.14
5.4.250.0130.03719.22
5.4.240.0000.04019.04
5.4.230.0070.04319.13
5.4.220.0030.06019.17
5.4.210.0030.03719.14
5.4.200.0030.03719.04
5.4.190.0070.03318.89
5.4.180.0130.04019.04
5.4.170.0030.03719.04
5.4.160.0070.07318.86
5.4.150.0030.07719.11
5.4.140.0030.07016.51
5.4.130.0100.06316.47
5.4.120.0030.03716.52
5.4.110.0070.06716.48
5.4.100.0070.03016.49
5.4.90.0030.03716.55
5.4.80.0030.03316.48
5.4.70.0030.03316.37
5.4.60.0130.04316.47
5.4.50.0030.03316.41
5.4.40.0000.04016.55
5.4.30.0100.03016.48
5.4.20.0000.04016.41
5.4.10.0070.03716.41
5.4.00.0130.02715.88
5.3.290.0200.05714.68
5.3.280.0030.04314.57
5.3.270.0030.03714.70
5.3.260.0030.03314.59
5.3.250.0000.08014.61
5.3.240.0070.03314.67
5.3.230.0030.07714.64
5.3.220.0030.05314.57
5.3.210.0030.03714.57
5.3.200.0030.05314.56
5.3.190.0000.06314.58
5.3.180.0000.04014.62
5.3.170.0170.03714.63
5.3.160.0000.06314.68
5.3.150.0070.03314.63
5.3.140.0000.04014.62
5.3.130.0000.04014.64
5.3.120.0100.03314.60
5.3.110.0070.05014.54
5.3.100.0070.03314.10
5.3.90.0000.04013.95
5.3.80.0000.04014.04
5.3.70.0000.03714.11
5.3.60.0100.02714.13
5.3.50.0030.03713.95
5.3.40.0130.04014.01
5.3.30.0000.03713.89
5.3.20.0000.03713.62
5.3.10.0070.03313.72
5.3.00.0030.03713.67
5.2.170.0000.03011.00
5.2.160.0030.03311.20
5.2.150.0000.03011.15
5.2.140.0000.03011.05
5.2.130.0030.03011.00
5.2.120.0000.04311.23
5.2.110.0030.02311.15
5.2.100.0000.02711.17
5.2.90.0070.02311.12
5.2.80.0030.05011.08
5.2.70.0030.04011.10
5.2.60.0030.02711.05
5.2.50.0000.03711.00
5.2.40.0030.03310.86
5.2.30.0130.03711.09
5.2.20.0070.02311.01
5.2.10.0030.03010.97
5.2.00.0070.03710.72
5.1.60.0030.02310.08
5.1.50.0030.0309.99
5.1.40.0030.0239.97
5.1.30.0030.05710.33
5.1.20.0030.02710.29
5.1.10.0070.05010.17
5.1.00.0070.05010.14
5.0.50.0030.0479.64
5.0.40.0000.0479.64
5.0.30.0070.0609.64
5.0.20.0000.0309.64
5.0.10.0070.0439.64
5.0.00.0030.0639.64
4.4.90.0000.0139.64
4.4.80.0000.0179.64
4.4.70.0000.0179.64
4.4.60.0030.0139.64
4.4.50.0030.0279.64
4.4.40.0000.0439.64
4.4.30.0000.0179.64
4.4.20.0000.0409.64
4.4.10.0000.0379.64
4.4.00.0000.0579.64
4.3.110.0000.0339.64
4.3.100.0070.0309.64
4.3.90.0000.0379.64
4.3.80.0030.0409.64
4.3.70.0070.0309.64
4.3.60.0100.0279.64
4.3.50.0030.0339.64
4.3.40.0000.0579.64
4.3.30.0000.0379.64
4.3.20.0000.0379.64
4.3.10.0030.0339.64
4.3.00.0030.0339.64

preferences:
49.16 ms | 400 KiB | 5 Q