3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Samsung { public function make() :string { return "This is Samsung product"; } } class Galaxy extends Samsung { public function make() { return new Samsung(); } } $vendor = new Galaxy(); echo $vendor->make();

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)
7.0.00.0100.03320.08
5.6.160.0130.05320.62
5.6.150.0030.08718.27
5.6.140.0070.04018.26
5.6.130.0170.08018.15
5.6.120.0070.05321.13
5.6.110.0030.05721.00
5.6.100.0270.06021.09
5.6.90.0030.04721.06
5.6.80.0100.06020.38
5.5.300.0070.08017.93
5.5.290.0030.07318.08
5.5.280.0130.03320.88
5.5.270.0100.07320.80
5.5.260.0070.08320.80
5.5.250.0030.05020.68
5.5.240.4070.04020.27

preferences:
139.02 ms | 1394 KiB | 7 Q