3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private static $var = 1; public __get($name) { return $this->$name; } public __set($name, $value) { $this->$name = $value; } } $f = new Foo; echo $f->var; $f->var = 2; echo $f->var; var_dump($f);

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.240.0110.04212.39
5.4.230.0120.03912.38
5.4.220.0160.05212.38
5.4.210.0130.04212.38
5.4.200.0100.04512.38
5.4.190.0120.04412.38
5.4.180.0130.04112.38
5.4.170.0110.04212.39
5.4.160.0110.04212.38
5.4.150.0170.06812.38
5.4.140.0190.05212.07
5.4.130.0090.04312.05
5.4.120.0150.05312.01
5.4.110.0130.04112.01
5.4.100.0090.04512.01
5.4.90.0150.03912.01
5.4.80.0120.04312.01
5.4.70.0130.04112.01
5.4.60.0120.04112.01
5.4.50.0110.04212.00
5.4.40.0130.04211.99
5.4.30.0090.04411.99
5.4.20.0190.06511.99
5.4.10.0120.04211.99
5.4.00.0110.04311.49
5.3.280.0130.04212.71
5.3.270.0140.04212.72
5.3.260.0140.04312.72
5.3.250.0150.04412.72
5.3.240.0160.04512.72
5.3.230.0110.05112.71
5.3.220.0120.04712.68
5.3.210.0150.04312.68
5.3.200.0200.05112.68
5.3.190.0130.04412.68
5.3.180.0120.04312.67
5.3.170.0150.04112.67
5.3.160.0100.04512.67
5.3.150.0130.04712.67
5.3.140.0130.04912.66
5.3.130.0130.05112.66
5.3.120.0150.04812.66
5.3.110.0100.05012.66
5.3.100.0130.04412.12
5.3.90.0120.04012.09
5.3.80.0120.04512.08
5.3.70.0120.04512.08
5.3.60.0100.04612.07
5.3.50.0140.04512.01
5.3.40.0110.04512.01
5.3.30.0130.04511.96
5.3.20.0140.04311.74
5.3.10.0140.04211.71
5.3.00.0290.05811.69

preferences:
143.6 ms | 1394 KiB | 7 Q