3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Math { public add($item1, $item2) { return $item1 + $item2; } } trait Cart { public add_cart($item1, $item2) { return $item1 + $item2; } } class x { public function __construct() { $x =& $this; $x = new stdClass; var_dump($this); } } var_dump(new x);

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.90.0230.05812.00
5.4.80.0200.07012.00
5.4.70.0150.04411.99
5.4.60.0230.05511.99
5.4.50.0140.04311.99
5.4.40.0220.04811.98
5.4.30.0180.05211.98
5.4.20.0130.04611.97
5.4.10.0240.05511.98
5.4.00.0150.04311.47
5.3.190.0170.05712.67
5.3.180.0190.04212.67
5.3.170.0220.06012.67
5.3.160.0190.05312.67
5.3.150.0170.04412.67
5.3.140.0270.05412.66
5.3.130.0200.04112.66
5.3.120.0160.04712.66
5.3.110.0290.06412.66
5.3.100.0150.04612.12
5.3.90.0170.04412.08
5.3.80.0250.05812.07
5.3.70.0190.04412.08
5.3.60.0220.05012.06
5.3.50.0170.05512.00
5.3.40.0150.04812.00
5.3.30.0190.06011.94
5.3.20.0160.04411.73
5.3.10.0160.04211.68
5.3.00.0260.06511.67

preferences:
135.92 ms | 1394 KiB | 7 Q