3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait { public function out() { echo "Traits!" } } class Test { use TestTrait; } Test::out();

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.160.0140.05012.39
5.4.150.0120.05112.39
5.4.140.0120.05012.08
5.4.130.0150.04812.06
5.4.120.0120.05312.03
5.4.110.0120.04612.03
5.4.100.0150.05612.02
5.4.90.0100.04212.02
5.4.80.0100.04012.02
5.4.70.0120.03912.02
5.4.60.0110.03812.02
5.4.50.0110.04012.02
5.4.40.0120.04012.01
5.4.30.0120.05212.00
5.4.20.0120.04012.00
5.4.10.0110.05212.01
5.4.00.0090.05011.50
5.3.260.0140.05812.72
5.3.250.0690.04613.09
5.3.240.0140.05912.72
5.3.230.0100.05012.71
5.3.220.0140.06012.68
5.3.210.0150.06012.68
5.3.200.0150.06212.68
5.3.190.0110.05012.68
5.3.180.0140.05112.67
5.3.170.0120.04812.67
5.3.160.0140.05412.67
5.3.150.0120.05212.67
5.3.140.0150.05312.66
5.3.130.0130.06012.66
5.3.120.0110.04512.66
5.3.110.0160.07012.66
5.3.100.0140.04912.12
5.3.90.0110.03912.08
5.3.80.0150.04812.08
5.3.70.0120.05112.08
5.3.60.0120.05012.06
5.3.50.0130.05212.00
5.3.40.0120.05112.00
5.3.30.0120.04111.95
5.3.20.0150.05011.73
5.3.10.0130.04911.69
5.3.00.0090.04511.67

preferences:
137.8 ms | 1399 KiB | 7 Q