3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ab implements Serializable{ protected $x; function __construct() { $this->x = 'val'; } public function serialize() { throw new Exception('Can\'t serialize '); } public function unserialize($str) { throw new Exception('Can\'t serialize '); } } try{ $tmp = serialize(new Ab()); }catch($e Exception){ var_dump($e); }

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.300.0080.03612.52
5.4.290.0070.03912.52
5.4.280.0080.03612.41
5.4.270.0070.04512.41
5.4.260.0070.05512.41
5.4.250.0080.04512.41
5.4.240.0080.03612.41
5.4.230.0050.04112.41
5.4.220.0060.03712.40
5.4.210.0060.04612.40
5.4.200.0120.04412.40
5.4.190.0150.04312.40
5.4.180.0070.03812.40
5.4.170.0100.03412.41
5.4.160.0100.03412.40
5.4.150.0060.03712.40
5.4.140.0070.03812.09
5.4.130.0070.03512.07
5.4.120.0080.03512.04
5.4.110.0110.04412.03
5.4.100.0070.03512.04
5.4.90.0040.05012.04
5.4.80.0090.03812.04
5.4.70.0040.03912.04
5.4.60.0100.03412.03
5.4.50.0070.03812.03
5.4.40.0100.03512.02
5.4.30.0070.03912.02
5.4.20.0070.03612.01
5.4.10.0110.04512.02
5.4.00.0070.04911.51
5.3.280.0100.04912.71
5.3.270.0110.04412.72
5.3.260.0040.04412.72
5.3.250.0150.03812.72
5.3.240.0110.03412.72
5.3.230.0040.04212.71
5.3.220.0090.03712.68
5.3.210.0120.03612.68
5.3.200.0080.03712.68
5.3.190.0070.03912.68
5.3.180.0040.04012.68
5.3.170.0090.03612.67
5.3.160.0090.03412.68
5.3.150.0090.03912.68
5.3.140.0050.04112.66
5.3.130.0100.04012.65
5.3.120.0080.04212.66
5.3.110.0100.04612.66
5.3.100.0130.04612.13
5.3.90.0100.03312.11
5.3.80.0100.04012.10
5.3.70.0060.03912.10
5.3.60.0050.03812.10
5.3.50.0060.03812.04
5.3.40.0040.04112.04
5.3.30.0100.03211.99
5.3.20.0050.03711.77
5.3.10.0090.03511.73
5.3.00.0060.04011.72

preferences:
133.39 ms | 1398 KiB | 7 Q