3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example implements Serializable { /* Serializable */ public function serialize() { // We need to serialize everything because a run-time object of this class hasn't a reference return serialize(array( 'label' => 'a label', 'links' => 'some links', 'attrs' => 'some attrs', )); } public function unserialize($s) { return 'pie'; } } $o = new Example $o->self = $o; echo serialize($o);

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)
5.4.50.0080.03712.02
5.4.40.0060.04112.01
5.4.30.0070.03712.00
5.4.20.0070.03912.00
5.4.10.0070.03412.00
5.4.00.0080.03911.50
5.3.150.0090.04212.67
5.3.140.0070.03712.66
5.3.130.0070.04312.66
5.3.120.0090.04312.66
5.3.110.0070.04012.66
5.3.100.0090.03612.12
5.3.90.0080.04412.10
5.3.80.0060.04312.09
5.3.70.0060.03712.09
5.3.60.0070.04112.08
5.3.50.0070.04112.02
5.3.40.0080.04212.02
5.3.30.0070.03911.98
5.3.20.0060.04111.76
5.3.10.0080.03611.73
5.3.00.0050.04211.71

preferences:
142.48 ms | 1394 KiB | 7 Q