3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b = false; function __construct($oB) { $this->b = $oB; } } class B { public $a = false; function __construct($oA) { $this->a = $oA; } } $aDepends = array( ); $aDepends['A']=null $oB = new B(&{$aDepends['A']}); $oA = new A($oB); $aDepends['A']=$oA; var_dump($oA); var_dump($oB);

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.0.00.0100.04020.18
5.6.160.0100.08720.47
5.6.150.0030.08318.14
5.6.140.0070.05018.23
5.6.130.0130.04718.14
5.6.120.0100.08321.03
5.6.110.0070.08720.99
5.6.100.0030.07021.00
5.6.90.0200.06721.02
5.6.80.0070.08020.38
5.5.300.0070.08317.99
5.5.290.0170.05718.05
5.5.280.0000.04320.97
5.5.270.0030.04320.96
5.5.260.0030.06020.88
5.5.250.0030.04020.58
5.5.240.0100.08020.08

preferences:
131.57 ms | 1398 KiB | 7 Q