3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function a() { echo "a"; } } class Foo { use A; } class Bar extends Foo { use A { A::a as b; } } $foo = new Bar; $foo->a(); $foo->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.3.80.0060.00319.36
8.3.70.0120.00316.63
8.3.60.0070.01118.30
8.3.50.0100.00318.38
8.3.40.0110.00718.71
8.3.30.0120.00618.73
8.3.20.0080.00020.09
8.3.10.0090.00021.85
8.3.00.0050.00323.72
8.2.200.0040.00416.63
8.2.190.0110.00718.38
8.2.180.0120.00616.50
8.2.170.0120.00622.96
8.2.160.0150.00020.52
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00420.94
8.2.120.0000.00826.35
8.2.110.0050.00520.94
8.2.100.0110.00017.66
8.2.90.0040.00419.28
8.2.80.0050.00317.97
8.2.70.0030.00617.75
8.2.60.0050.00217.80
8.2.50.0000.00718.22
8.2.40.0040.00420.42
8.2.30.0040.00419.16
8.2.20.0080.00017.93
8.2.10.0070.00017.99
8.2.00.0040.00417.93
8.1.290.0060.00318.88
8.1.280.0110.00325.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.23
8.1.230.0070.00417.79
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0080.00018.50
8.1.160.0000.00818.84
8.1.150.0040.00418.81
8.1.140.0070.00019.11
8.1.130.0000.00718.84
8.1.120.0030.00717.46
8.1.110.0000.00717.34
8.1.100.0040.00417.49
8.1.90.0070.00017.35
8.1.80.0000.00817.34
8.1.70.0080.00017.44
8.1.60.0000.00817.56
8.1.50.0030.00617.41
8.1.40.0030.00617.54
8.1.30.0040.00417.59
8.1.20.0070.00017.65
8.1.10.0000.00817.45
8.1.00.0040.00417.39
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0000.00717.21
8.0.260.0050.00316.73
8.0.250.0040.00416.86
8.0.240.0050.00516.95
8.0.230.0040.00416.80
8.0.220.0000.00716.89
8.0.210.0070.00016.85
8.0.200.0030.00316.89
8.0.190.0000.00817.01
8.0.180.0000.00716.92
8.0.170.0030.00316.89
8.0.160.0040.00416.88
8.0.150.0000.00716.79
8.0.140.0030.00316.90
8.0.130.0000.00613.40
8.0.120.0050.00316.78
8.0.110.0080.00016.84
8.0.100.0050.00316.66
8.0.90.0000.00716.73
8.0.80.0090.00916.82
8.0.70.0000.00816.77
8.0.60.0000.00716.91
8.0.50.0040.00416.71
8.0.30.0100.00916.95
8.0.20.0100.00817.40
8.0.10.0040.00417.13
8.0.00.0140.00416.93
7.4.330.0030.00315.55
7.4.320.0040.00416.64
7.4.300.0030.00316.60
7.4.290.0090.00016.60
7.4.280.0040.00416.50
7.4.270.0030.00316.54
7.4.260.0050.00316.52
7.4.250.0070.00016.47
7.4.240.0050.00216.50
7.4.230.0000.00716.50
7.4.220.0100.00716.50
7.4.210.0030.01716.63
7.4.200.0000.00716.50
7.4.160.0080.00816.72
7.4.150.0150.00317.40
7.4.140.0110.00817.86
7.4.130.0170.00016.51
7.4.120.0100.00916.53
7.4.110.0090.00616.61
7.4.100.0040.01316.64
7.4.90.0070.01016.63
7.4.80.0080.00819.39
7.4.70.0120.00616.51
7.4.60.0060.01016.49
7.4.50.0000.01416.59
7.4.40.0090.00616.46
7.4.30.0100.00616.40
7.4.00.0070.00415.05
7.3.330.0020.00213.31
7.3.320.0030.00313.27
7.3.310.0070.00016.29
7.3.300.0040.00416.17
7.3.290.0070.00816.32
7.3.280.0100.00516.28
7.3.270.0060.01017.40
7.3.260.0120.00716.51
7.3.250.0140.00516.22
7.3.240.0090.00916.37
7.3.230.0170.00016.31
7.3.210.0130.00316.50
7.3.200.0070.00916.26
7.3.190.0120.00416.55
7.3.180.0040.01216.17
7.3.170.0160.00616.32
7.3.160.0110.01116.21
7.2.330.0070.01016.73
7.2.320.0060.01716.73
7.2.310.0090.00916.72
7.2.300.0100.00616.56
7.2.290.0100.01316.45
7.2.60.0040.01116.65
7.2.00.0100.01417.38
7.1.200.0050.00515.78
7.1.120.0090.01417.00
7.1.110.0130.01016.37
7.1.100.0100.00716.08
7.1.90.0090.00616.22
7.1.80.0180.00316.30
7.1.70.0130.01315.18
7.1.60.0280.01733.28
7.1.50.0250.00932.81
7.1.40.0160.01632.51
7.1.30.0200.01432.78
7.1.20.0160.01332.54
7.1.10.0100.01014.42
7.1.00.0070.01014.72

preferences:
60.15 ms | 401 KiB | 5 Q