3v4l.org

run code in 300+ PHP versions simultaneously
<?php class myObject { protected $objects = array; public function add(myObject $object) { $this->objects[] = $object; } } $foo = new myObject; while (true) $foo->addObject($foo);

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.150.0030.07018.83
5.4.140.0100.07316.43
5.4.130.0100.05016.41
5.4.120.0030.04716.25
5.4.110.0070.05316.45
5.4.100.0070.06716.30
5.4.90.0230.05716.39
5.4.80.0100.06716.29
5.4.70.0100.04316.38
5.4.60.0170.04316.27
5.4.50.0030.04316.40
5.4.40.0070.07016.64
5.4.30.0130.05016.34
5.4.20.0100.06716.27
5.4.10.0170.06716.46
5.4.00.0070.06715.77
5.3.250.0030.06714.52
5.3.240.0130.04014.75
5.3.230.0030.08014.59
5.3.220.0200.05714.63
5.3.210.0130.06014.61
5.3.200.0030.05014.56
5.3.190.0000.05014.61
5.3.180.0070.05314.61
5.3.170.0130.05714.63
5.3.160.0000.04314.63
5.3.150.0200.06314.71
5.3.140.0030.04014.61
5.3.130.0100.05714.55
5.3.120.0100.05714.58
5.3.110.0070.07014.57
5.3.100.0070.05314.12
5.3.90.0070.03713.96
5.3.80.0070.04314.09
5.3.70.0030.07714.08
5.3.60.0100.04313.92
5.3.50.0000.04313.94
5.3.40.0100.04313.98
5.3.30.0030.07013.90
5.3.20.0000.04313.68
5.3.10.0070.07013.65
5.3.00.0130.06313.60

preferences:
147.9 ms | 1394 KiB | 7 Q