3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); $obj->bar = "xyz"; $data = array("foo" => "bar"); $key = "foo"; echo $obj->{$data[$key]}; syntax error echo "{$obj->{$data[$key]}}";

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.10.0030.08720.24
7.0.00.0100.06020.16
5.6.160.0100.08720.54
5.6.150.0130.07318.22
5.6.140.0100.07318.27
5.6.130.0000.08718.30
5.6.120.0130.07721.00
5.6.110.0070.04020.97
5.6.100.0100.08321.11
5.6.90.0000.04321.10
5.6.80.0100.06320.53
5.5.300.0030.04317.98
5.5.290.0000.08317.94
5.5.280.0030.04320.87
5.5.270.0100.08020.87
5.5.260.0070.06720.88
5.5.250.0030.08020.61
5.5.240.0100.07020.29

preferences:
143.05 ms | 1394 KiB | 7 Q