3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Vendor { public function make(); } class Samsung implements Vendor{ public function make() :string { return "This is Samsung product"; } } class Galaxy extends Samsung() { public function make() { return new Samsung(); } } $vendor = new Samsung(); 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.0000.04320.10
5.6.160.0100.08020.48
5.6.150.0070.04718.29
5.6.140.0000.05718.16
5.6.130.0030.06318.21
5.6.120.0000.04721.02
5.6.110.0100.08021.03
5.6.100.0100.06721.14
5.6.90.0070.06021.10
5.6.80.0070.06020.37
5.5.300.0030.05717.98
5.5.290.0100.05017.98
5.5.280.0070.04320.80
5.5.270.0130.07020.86
5.5.260.0070.07020.89
5.5.250.0200.07720.61
5.5.240.3970.04320.27

preferences:
140.62 ms | 1394 KiB | 7 Q