3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $water = 'water'; private $water = 'earth'; public function __get($name) { if(strpos($name, $get) == 0) $name = lcfirst(substr($name, 0, 3)); if(isset($this->$name)) return $this->$name; return false; } } $foo = new Foo(); echo $foo->water; echo $foo->getEarth; echo $foo->doesntExist;

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.350.0100.05719.12
5.4.340.0090.04712.02
5.4.320.0100.05012.50
5.4.310.0080.04512.50
5.4.300.0050.04912.50
5.4.290.0060.04712.50
5.4.280.0110.05312.40
5.4.270.0100.04712.40
5.4.260.0090.05312.39
5.4.250.0110.05812.40
5.4.240.0110.05812.39
5.4.230.0160.06612.39
5.4.220.0140.06112.39
5.4.210.0090.05312.39
5.4.200.0100.05112.39
5.4.190.0120.04712.38
5.4.180.0100.05312.38
5.4.170.0150.05312.39
5.4.160.0050.04512.39
5.4.150.0080.05412.39
5.4.140.0160.04712.07
5.4.130.0070.03712.06
5.4.120.0080.04112.02
5.4.110.0120.03412.02
5.4.100.0070.03612.02
5.4.90.0110.03712.01
5.4.80.0060.04112.02
5.4.70.0050.04412.01
5.4.60.0110.04112.01
5.4.50.0190.05812.02
5.4.40.0120.04012.00
5.4.30.0090.03912.00
5.4.20.0090.03912.00
5.4.10.0090.04112.00
5.4.00.0070.04011.49
5.3.290.0060.04312.80
5.3.280.0080.04212.71
5.3.270.0060.03912.73
5.3.260.0080.04112.72
5.3.250.0110.04112.72
5.3.240.0060.04312.72
5.3.230.0060.04312.71
5.3.220.0050.04212.68
5.3.210.0050.05512.68
5.3.200.0090.04712.68
5.3.190.0030.04612.67
5.3.180.0160.06012.68
5.3.170.0150.03712.67
5.3.160.0110.04312.68
5.3.150.0130.06412.67
5.3.140.0060.04912.66
5.3.130.0100.06212.66
5.3.120.0170.08312.66
5.3.110.0130.06212.66
5.3.100.0060.04212.12
5.3.90.0080.04112.10
5.3.80.0060.04112.09
5.3.70.0030.04012.09
5.3.60.0080.04112.07
5.3.50.0030.04112.02
5.3.40.0100.08012.02
5.3.30.0070.05111.98
5.3.20.0110.04511.75
5.3.10.0130.04711.72
5.3.00.0060.05311.71
5.2.170.0060.0349.21
5.2.160.0070.0499.21
5.2.150.0190.0849.21
5.2.140.0070.0569.21
5.2.130.0070.0339.17
5.2.120.0080.0269.17
5.2.110.0100.0359.17
5.2.100.0060.0409.17
5.2.90.0050.0329.17
5.2.80.0050.0339.17
5.2.70.0080.0339.16
5.2.60.0040.0389.12
5.2.50.0060.0379.09
5.2.40.0070.0339.07
5.2.30.0040.0339.04
5.2.20.0090.0489.04
5.2.10.0160.0408.93
5.2.00.0070.0408.80
5.1.60.0020.0378.08
5.1.50.0070.0308.08
5.1.40.0050.0288.06
5.1.30.0060.0268.41
5.1.20.0090.0298.43
5.1.10.0050.0298.15
5.1.00.0050.0368.15
5.0.50.0040.0276.63
5.0.40.0070.0256.50
5.0.30.0090.0366.30
5.0.20.0040.0246.27
5.0.10.0040.0246.25
5.0.00.0040.0346.24
4.4.90.0040.0184.78
4.4.80.0040.0194.76
4.4.70.0050.0164.75
4.4.60.0040.0184.75
4.4.50.0040.0254.77
4.4.40.0050.0334.71
4.4.30.0050.0204.76
4.4.20.0020.0224.84
4.4.10.0050.0244.85
4.4.00.0030.0354.76
4.3.110.0050.0224.66
4.3.100.0050.0234.66
4.3.90.0060.0234.64
4.3.80.0050.0314.59
4.3.70.0030.0214.63
4.3.60.0040.0194.63
4.3.50.0050.0194.63
4.3.40.0010.0334.54
4.3.30.0030.0213.30
4.3.20.0080.0203.28
4.3.10.0020.0263.24
4.3.00.0170.0206.95

preferences:
142.65 ms | 1394 KiB | 7 Q