3v4l.org

run code in 300+ PHP versions simultaneously
<?php print_r(json_encode(['S', 'M', 'L']); print_r(json_encode((object) ['S', 'M', 'L']);

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.08320.16
7.0.10.0100.05320.25
7.0.00.0100.07720.23
5.6.170.0300.07020.71
5.6.160.0070.08720.54
5.6.150.0170.06718.19
5.6.140.0070.08018.15
5.6.130.0170.07718.17
5.6.120.0100.04021.09
5.6.110.0070.08320.88
5.6.100.0130.08320.98
5.6.90.0030.05721.02
5.6.80.0000.04020.38
5.5.310.0330.06320.24
5.5.300.0100.03717.98
5.5.290.0070.09018.07
5.5.280.0030.04320.95
5.5.270.0030.08720.75
5.5.260.0070.06720.95
5.5.250.0100.07020.68
5.5.240.3630.04320.14

preferences:
135.9 ms | 1394 KiB | 7 Q