3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PushAndPull { $queue=array(); function push($push) { array_push($this->$queue,$push); /*foreach($push as $value) { echo ("$value"); }*/ } function pull() { return array_shift($this->$queue); } } $a=array("1","2","3"); $obj = new PushAndPull(); $obj->function push($a); ?>

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.110.0140.04012.00
5.4.100.0200.05412.00
5.4.90.0130.04412.00
5.4.80.0130.04112.00
5.4.70.0110.04212.00
5.4.60.0140.04812.00
5.4.50.0130.04912.00
5.4.40.0120.04211.99
5.4.30.0120.04511.98
5.4.20.0110.04311.98
5.4.10.0170.05311.98
5.4.00.0150.04011.47
5.3.210.0140.04412.68
5.3.200.0110.04512.68
5.3.190.0120.04512.68
5.3.180.0140.04012.67
5.3.170.0120.04212.67
5.3.160.0110.04312.67
5.3.150.0110.04612.67
5.3.140.0130.04212.66
5.3.130.0150.04312.66
5.3.120.0160.05112.66
5.3.110.0120.04312.66
5.3.100.0110.04512.12
5.3.90.0120.04512.09
5.3.80.0130.05312.08
5.3.70.0130.04412.08
5.3.60.0110.04412.07
5.3.50.0160.05112.01
5.3.40.0170.04412.01
5.3.30.0140.04511.98
5.3.20.0160.04011.75
5.3.10.0120.04111.72
5.3.00.0090.04411.70

preferences:
140.52 ms | 1386 KiB | 7 Q