3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Prueba(){ public function saludo() { echo "Hola"; } } $s = "sal"; $obj = new Prueba(); $obj->{"{$var}uso"}();

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.20.0200.08020.29
7.0.10.0130.08320.21
7.0.00.0030.04720.20
5.6.170.0100.05020.71
5.6.160.0100.07720.43
5.6.150.0100.07018.15
5.6.140.0070.03718.21
5.6.130.0100.06018.17
5.6.120.0100.07320.96
5.6.110.0030.05020.98
5.6.100.0130.08021.12
5.6.90.0070.06021.09
5.6.80.0070.08320.50
5.5.310.0370.05720.38
5.5.300.0100.07718.05
5.5.290.0070.06717.97
5.5.280.0100.08320.79
5.5.270.0070.07720.79
5.5.260.0030.05320.67
5.5.250.0100.08320.57
5.5.240.0100.07020.25

preferences:
138.84 ms | 1394 KiB | 7 Q