3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function test() { return 'A'; } } trait B { public function test() { return 'B'; } } class C { use A, B { A::test insteadof B; B::test insteadof A; } public function test() { return 'X'; } } $c = new C(); var_dump($c->test());

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.5.00.0120.01019.99
8.4.150.0030.00014.05
8.4.140.0100.01117.88
8.4.130.0100.00817.77
8.4.120.0140.00520.74
8.4.110.0120.00818.57
8.4.100.0090.01117.76
8.4.90.0050.00417.46
8.4.80.0120.00722.47
8.4.70.0150.00517.57
8.4.60.0110.01119.39
8.4.50.0390.00817.53
8.4.40.0340.01017.54
8.4.30.0410.00717.20
8.4.20.0370.01017.68
8.4.10.0410.00917.42
8.3.280.0110.00818.31
8.3.270.0130.00916.42
8.3.260.0120.00816.61
8.3.250.0100.00618.82
8.3.240.0110.00716.64
8.3.230.0100.00916.60
8.3.220.0060.00219.03
8.3.210.0040.00416.41
8.3.200.0090.01016.80
8.3.190.0260.00716.60
8.3.180.0180.00816.69
8.3.170.0360.00716.45
8.3.160.0400.00816.37
8.3.150.0320.00816.34
8.3.140.0190.00316.33
8.3.130.0240.00416.42
8.3.120.0160.00416.62
8.3.110.0240.00416.37
8.3.100.0170.00716.48
8.3.90.0180.00316.47
8.3.80.0230.00616.41
8.3.70.0240.00816.17
8.3.60.0330.01316.42
8.3.50.0360.00916.50
8.3.40.0450.00817.08
8.3.30.0320.00917.15
8.3.20.0280.01317.38
8.3.10.0380.00717.19
8.3.00.0240.01117.33
8.2.290.0110.00920.45
8.2.280.0310.01016.25
8.2.270.0310.00916.39
8.2.260.0320.00716.54
8.2.250.0340.00616.34
8.2.240.0300.00816.40
8.2.230.0330.00816.41
8.2.220.0310.00916.74
8.2.210.0300.01016.25
8.2.200.0300.00916.55
8.2.190.0340.00616.32
8.2.180.0280.01016.45
8.2.170.0370.00517.59
8.2.160.0310.01117.69
8.2.150.0290.00817.50
8.2.140.0310.01217.51
8.2.130.0340.00817.39
8.2.120.0340.00717.53
8.2.110.0320.00717.73
8.2.100.0350.00717.54
8.2.90.0390.01416.90
8.2.80.0350.00917.36
8.2.70.0190.00617.54
8.2.60.0140.00417.46
8.2.50.0300.00917.29
8.2.40.0350.00517.48
8.2.30.0430.00917.38
8.2.20.0310.01017.44
8.2.10.0280.00917.68
8.2.00.0250.00717.37

preferences:
63.02 ms | 403 KiB | 5 Q