3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Class1 { use T { func as newFunc; } public function func() { // <------------ if this override trait method and the method get aliased will lead crash echo "From Class1::func\n"; } } class Class2 { use T; } trait T { // <------------------------------ declare after the Class1 and it will be destroy before Class1 public function func() { echo "From trait T\n"; } }

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)
5.4.30.0140.04311.98
5.4.20.0130.04611.98
5.4.10.0150.04111.98
5.4.00.0100.04611.47
5.3.130.0160.04612.66
5.3.120.0240.06612.66
5.3.110.0190.04112.65
5.3.100.0120.04712.12
5.3.90.0160.04212.08
5.3.80.0260.06312.07
5.3.70.0150.04412.08
5.3.60.0210.05412.07
5.3.50.0120.04812.00
5.3.40.0150.04512.00
5.3.30.0140.04311.96
5.3.20.0210.05211.74
5.3.10.0140.04211.70
5.3.00.0230.06311.69

preferences:
138.49 ms | 1394 KiB | 7 Q