3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c1 = new class() implements Serializable { public function serialize() { return ['foo']; } public function unserialize($data) { return new self(); } } var_dump(serialize($c1));

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.05720.09
7.0.10.0130.08320.21
7.0.00.0070.09320.30
5.6.170.0300.06320.71
5.6.160.0130.08020.44
5.6.150.0030.04718.23
5.6.140.0100.08018.14
5.6.130.0130.07718.28
5.6.120.0070.08020.98
5.6.110.0000.09320.96
5.6.100.0070.08320.95
5.6.90.0030.04720.96
5.6.80.0100.06720.43
5.5.310.0170.03720.30
5.5.300.0000.05718.02
5.5.290.0030.05317.94
5.5.280.0130.06320.84
5.5.270.0070.08720.72
5.5.260.0200.07320.95
5.5.250.0070.06020.69
5.5.240.0030.06020.15

preferences:
143.1 ms | 1394 KiB | 7 Q