3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Obj { public $num; public function __construct($num) { $this->num = $num; } } $arr = array(new Obj(1),new Obj(2)) var_dump($arr);

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.5.60.0030.07717.23
5.5.50.0100.07717.25
5.5.40.0130.05717.27
5.5.30.0030.04317.27
5.5.20.0030.03717.18
5.5.10.0030.07717.19
5.5.00.0030.08017.16
5.4.220.0100.04319.00
5.4.210.0100.07019.09
5.4.200.0130.07318.96
5.4.190.0000.05018.98
5.4.180.0030.06019.02
5.4.170.0130.05719.01
5.4.160.0100.06719.08
5.4.150.0100.06018.99
5.4.140.0070.07016.34
5.4.130.0030.04016.34
5.4.120.0030.07016.63
5.4.110.0070.07316.37
5.4.100.0030.04716.63
5.4.90.0030.07016.61
5.4.80.0030.05016.44
5.4.70.0070.07316.49
5.4.60.0070.05716.39
5.4.50.0070.03316.21
5.4.40.0130.03316.38
5.4.30.0100.04716.39
5.4.20.0100.07016.20
5.4.10.0030.06016.42
5.4.00.0100.03015.88
5.3.270.0070.04714.64
5.3.260.0030.08014.66
5.3.250.0130.06714.64
5.3.240.0170.06314.68
5.3.230.0030.05014.63
5.3.220.0030.05714.58
5.3.210.0170.07014.67
5.3.200.0070.07714.59
5.3.190.0070.05714.59
5.3.180.0100.06714.62
5.3.170.0170.06714.57
5.3.160.0070.04314.56
5.3.150.0070.04314.78
5.3.140.0000.04714.62
5.3.130.0070.03714.61
5.3.120.0130.06314.76
5.3.110.0030.04014.65
5.3.100.0070.04714.13
5.3.90.0130.06714.01
5.3.80.0070.04714.04
5.3.70.0030.07714.04
5.3.60.0030.04014.09
5.3.50.0000.04013.95
5.3.40.0030.03713.97
5.3.30.0070.07314.13
5.3.20.0030.07013.91
5.3.10.0000.04713.70
5.3.00.0070.07713.52

preferences:
139.48 ms | 1386 KiB | 7 Q