3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Foo { use Foo { ff as a; } abstract private function a(); public function ff() { return '2424';}} class Bar {use Foo; } class An extends Bar { use Foo; public $var; } var_dump((new An())->abc());

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.40.0130.00318.79
8.3.30.0040.01119.15
8.3.20.0070.00020.30
8.3.10.0040.00420.40
8.3.00.0050.00319.13
8.2.170.0070.01022.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.78
8.2.110.0060.00322.16
8.2.100.0100.00018.82
8.1.270.0000.00822.02
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00318.43
8.1.230.0000.00918.57
5.4.320.0270.03319.11
5.4.310.0270.03319.17
5.4.300.0230.04019.13
5.4.290.0330.04318.93
5.4.280.0200.04319.20
5.4.270.0330.04019.11
5.4.260.0370.03719.22
5.4.250.0230.03719.22
5.4.240.0330.02718.93
5.4.230.0200.04018.94
5.4.220.0200.04319.07
5.4.210.0370.03019.12
5.4.200.0230.04018.96
5.4.190.0370.04719.05
5.4.180.0400.04319.04
5.4.170.0370.05018.96
5.4.160.0230.04019.24
5.4.150.0370.04018.93
5.4.140.0370.04016.36
5.4.130.0270.04316.37
5.4.120.0270.03716.36
5.4.110.0200.03716.54
5.4.100.0200.05016.52
5.4.90.0230.04016.52
5.4.80.0270.06316.50
5.4.70.0300.06016.50
5.4.60.0270.04716.48
5.4.50.0230.04716.51
5.4.40.0170.03716.49
5.4.30.0270.07016.48
5.4.20.0270.03716.19
5.4.10.0370.06316.45
5.4.00.0300.05315.82
5.3.290.0230.04014.61
5.3.280.0300.03714.52
5.3.270.0270.07714.57
5.3.260.0470.02014.43
5.3.250.0470.03714.52
5.3.240.0300.06014.70
5.3.230.0270.04714.52
5.3.220.0170.04014.53
5.3.210.0200.03314.51
5.3.200.0300.03714.54
5.3.190.0200.06014.54
5.3.180.0270.06314.45
5.3.170.0330.07014.50
5.3.160.0300.04014.58
5.3.150.0200.04714.65
5.3.140.0130.04714.49
5.3.130.0370.03714.45
5.3.120.0300.03714.52
5.3.110.0300.03314.42
5.3.100.0300.04013.96
5.3.90.0300.05313.81
5.3.80.0330.05713.93
5.3.70.0230.07013.94
5.3.60.0100.04314.01
5.3.50.0300.04013.91
5.3.40.0230.04013.88
5.3.30.0400.03313.84
5.3.20.0230.03713.63
5.3.10.0200.05013.61
5.3.00.0300.04713.47
5.2.170.0230.04711.22
5.2.160.0370.02711.07
5.2.150.0230.05011.04
5.2.140.0230.04011.13
5.2.130.0230.03010.98
5.2.120.0170.03311.07
5.2.110.0270.03311.09
5.2.100.0170.04711.04
5.2.90.0200.03010.98
5.2.80.0100.04311.25
5.2.70.0200.03711.02
5.2.60.0200.05711.03
5.2.50.0200.03010.98
5.2.40.0130.03010.98
5.2.30.0130.03010.96
5.2.20.0100.03710.86
5.2.10.0170.02710.90
5.2.00.0200.02310.86
5.1.60.0130.02310.86
5.1.50.0170.02310.86
5.1.40.0170.03010.86
5.1.30.0130.03310.86
5.1.20.0200.02310.86
5.1.10.0130.02710.86
5.1.00.0170.02310.86
5.0.50.0100.02010.86
5.0.40.0130.02010.86
5.0.30.0070.03010.86
5.0.20.0070.02010.86
5.0.10.0070.02010.86
5.0.00.0070.03710.86
4.4.90.0030.03310.86
4.4.80.0100.01710.86
4.4.70.0030.01710.86
4.4.60.0070.01710.86
4.4.50.0070.01710.86
4.4.40.0000.03010.86
4.4.30.0100.01310.86
4.4.20.0030.01710.86
4.4.10.0070.01710.86
4.4.00.0100.02010.86
4.3.110.0070.02010.86
4.3.100.0070.01310.86
4.3.90.0070.02010.86
4.3.80.0100.02010.86
4.3.70.0100.01010.86
4.3.60.0070.01310.86
4.3.50.0030.01710.86
4.3.40.0070.02310.86
4.3.30.0030.01710.86
4.3.20.0070.01710.86
4.3.10.0030.01710.86
4.3.00.0030.01710.86

preferences:
32.8 ms | 400 KiB | 5 Q