3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php $data = [ 'zero' => 0.0, 'even' => 1.0, 'fraction' => 1.3 ]; var_dump(json_encode($data));

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.0300.07020.31
7.0.10.0070.08020.24
7.0.00.0030.08720.25
5.6.170.0330.03720.55
5.6.160.0100.08020.57
5.6.150.0070.08318.23
5.6.140.0130.06318.18
5.6.130.0070.05018.18
5.6.120.0070.08721.01
5.6.110.0000.04321.01
5.6.100.0100.03321.00
5.6.90.0230.06020.89
5.6.80.0030.08720.48
5.5.310.0170.04020.34
5.5.300.0030.05317.96
5.5.290.0170.07717.98
5.5.280.0100.06720.73
5.5.270.0130.07720.76
5.5.260.0230.07720.86
5.5.250.0130.05320.79
5.5.240.0200.07320.03

preferences:
141.02 ms | 1394 KiB | 7 Q