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.0030.05320.10
5.6.160.0100.08020.45
5.6.150.0100.07018.18
5.6.140.0200.04318.19
5.6.130.0030.05718.28
5.6.120.0030.08021.01
5.6.110.0100.08021.12
5.6.100.0100.08321.02
5.6.90.0070.07320.94
5.6.80.0000.08320.52
5.5.300.0030.06018.08
5.5.290.0030.08017.99
5.5.280.0030.04320.81
5.5.270.0130.07720.72
5.5.260.0170.08020.79
5.5.250.0070.03720.60
5.5.240.0200.07320.28

preferences:
142.84 ms | 1394 KiB | 7 Q