3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object = json_decode(json_encode(['foo', 'bar', 'baz' => 'bat'])); var_dump(get_object_vars($object);

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.0100.08720.10
7.0.00.0030.06720.32
5.6.160.0100.08720.56
5.6.150.0070.07018.22
5.6.140.0030.07318.17
5.6.130.0100.03718.17
5.6.120.0030.06021.11
5.6.110.0100.08021.00
5.6.100.0200.03020.98
5.6.90.0070.06020.95
5.6.80.0100.06020.37
5.5.300.0200.06718.08
5.5.290.0130.07017.99
5.5.280.0170.03720.74
5.5.270.0170.07720.76
5.5.260.0100.07720.76
5.5.250.0200.07320.70
5.5.240.0170.07020.25

preferences:
139.14 ms | 1394 KiB | 7 Q