3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TimePeriod { private $Seconds; // <-- Traditional Property public $Hours { // <-- Guarded Property get() { return $this->Seconds / 3600; } set($x) { $this->Seconds = $x * 3600; } isset() { return isset($this->Seconds); } unset() { unset($this->Seconds); } } } $tp = new TimePeriod(); $tp->Hours = 10;

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.0120.04112.00
5.4.100.0120.04112.00
5.4.90.0120.04112.00
5.4.80.0110.04012.00
5.4.70.0130.03812.00
5.4.60.0110.04012.00
5.4.50.0180.05412.00
5.4.40.0150.04811.99
5.4.30.0110.04111.98
5.4.20.0180.05411.98
5.4.10.0140.04011.98
5.4.00.0150.04711.48
5.3.210.0150.04412.68
5.3.200.0180.05712.68
5.3.190.0110.04412.68
5.3.180.0130.04512.67
5.3.170.0110.04712.67
5.3.160.0110.04612.67
5.3.150.0110.04312.67
5.3.140.0130.03912.66
5.3.130.0200.05712.66
5.3.120.0090.04612.66
5.3.110.0100.04812.66
5.3.100.0120.04512.12
5.3.90.0110.04312.09
5.3.80.0180.06612.08
5.3.70.0140.04512.08
5.3.60.0130.04212.07
5.3.50.0150.04212.01
5.3.40.0180.04912.01
5.3.30.0130.04511.97
5.3.20.0120.04311.75
5.3.10.0140.04411.72
5.3.00.0130.04211.70

preferences:
133.27 ms | 1394 KiB | 7 Q