3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $savethis; public $andthis; public $notthis; public function __construct($a, $b) { $this->savethis = $a; $this->andthis = $b; $this->notthis = microtime(true); } public function __sleep() { return ['savethis', 'andthis']; } public function __wakeup() { $this->notthis = microtime(true); } } $f = new Foo(1, 2); var_dump($g = serialize($f), unserialize($g)->notthis != $f->notthis);

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.4.00.0070.01014.83
7.3.120.0130.00614.74
7.3.110.0070.01114.71
7.3.100.0040.01114.91
7.3.90.0060.00614.61
7.3.80.0140.00014.97
7.3.70.0030.00714.92
7.3.60.0110.00414.72
7.3.50.0030.01114.61
7.3.40.0030.00914.67
7.3.30.0090.00614.71
7.3.20.0090.00316.52
7.3.10.0080.01016.39
7.3.00.0030.00816.41
7.2.250.0090.00615.20
7.2.240.0100.01014.65
7.2.230.0070.00414.95
7.2.220.0100.00614.98
7.2.210.0080.00314.68
7.2.200.0100.00614.92
7.2.190.0100.00714.93
7.2.180.0060.01014.99
7.2.170.0090.00614.92
7.2.130.0140.00316.38
7.2.120.0100.01016.55
7.2.110.0140.00716.47
7.2.100.0090.00916.47
7.2.90.0150.00816.37
7.2.80.0280.00416.58
7.2.70.0160.01116.47
7.2.60.0190.00316.48
7.2.50.0240.00916.73
7.2.40.0200.00516.23
7.2.30.0110.00816.22
7.2.20.0120.01216.14
7.2.10.0150.01016.53
7.2.00.0150.00916.63
7.1.330.0070.01015.84
7.1.320.0060.01015.92
7.1.310.0060.00315.71
7.1.300.0040.00815.87
7.1.290.0090.00615.76
7.1.280.0030.00715.70
7.1.270.0000.00815.91
7.1.260.0090.00315.77
7.1.250.0140.00315.65
7.1.100.0430.01716.47
7.1.90.2470.00718.40
7.1.80.0040.01118.34
7.1.70.0000.01717.24
7.1.60.0180.01134.83
7.1.50.0180.01134.94
7.1.40.0210.01034.50
7.1.30.0190.01634.42
7.1.20.0210.01734.55
7.1.10.2940.01216.48
7.1.00.0140.00516.64
7.0.240.0150.00916.17
7.0.230.0070.00717.85
7.0.220.0070.00717.79
7.0.210.0100.00316.76
7.0.200.0080.00516.66
7.0.190.0050.01016.46
7.0.180.0040.01116.41
7.0.170.0050.01416.46
7.0.160.0040.01516.05
7.0.150.0060.01316.49
7.0.140.0060.01616.37
7.0.130.0040.01316.43
7.0.120.0000.01716.56
7.0.110.0030.01316.30
7.0.100.0000.01716.51
7.0.90.0090.00916.54
7.0.80.0040.01516.57
7.0.70.0070.01016.40
7.0.60.0110.00516.34
7.0.50.0110.00616.55
7.0.40.0080.01116.69
7.0.30.0030.01616.57
7.0.20.0080.01216.30
7.0.10.0000.01916.53
7.0.00.0080.01216.16

preferences:
36.59 ms | 818 KiB | 5 Q