3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Super { protected $var = 'Nope'; public function getVar() { return $this->var; } } class Sub extends Super { private $var = 'Hi there!'; } $sub = new Sub(); var_dump($sub->getVar());

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.280.0080.04812.38
5.4.270.0100.05012.37
5.4.260.0110.05912.38
5.4.250.0110.05612.38
5.4.240.0080.05712.37
5.4.230.0070.04612.37
5.4.220.0080.04612.36
5.4.210.0110.05812.36
5.4.200.0110.05612.37
5.4.190.0100.04912.36
5.4.180.0090.06212.36
5.4.170.0080.05812.37
5.4.160.0090.05412.37
5.4.150.0070.05612.36
5.4.140.0070.05612.05
5.4.130.0120.04612.04
5.4.120.0070.05311.99
5.4.110.0070.05511.99
5.4.100.0080.05211.99
5.4.90.0070.05511.99
5.4.80.0090.05211.99
5.4.70.0130.05411.98
5.4.60.0090.04411.99
5.4.50.0110.04211.99
5.4.40.0100.04311.98
5.4.30.0100.04311.98
5.4.20.0120.04411.98
5.4.10.0100.04711.97
5.4.00.0130.04411.46
5.3.280.0130.04612.71
5.3.270.0090.05212.73
5.3.260.0080.05212.72
5.3.250.0060.05212.72
5.3.240.0090.04912.72
5.3.230.0090.06912.71
5.3.220.0100.04812.68
5.3.210.0110.05312.68
5.3.200.0160.06512.68
5.3.190.0220.06212.67
5.3.180.0270.09312.67
5.3.170.0110.06712.67
5.3.160.0110.05812.67
5.3.150.0060.05212.67
5.3.140.0150.07012.66
5.3.130.0120.09012.66
5.3.120.0060.04612.66
5.3.110.0260.06912.66
5.3.100.0090.03912.12
5.3.90.0050.04412.09
5.3.80.0080.03812.07
5.3.70.0090.03712.07
5.3.60.0140.08512.07
5.3.50.0060.04012.00
5.3.40.0070.03912.00
5.3.30.0110.03311.96
5.3.20.0100.10311.73
5.3.10.0060.03611.70
5.3.00.0040.04411.68
5.2.170.0200.0639.18
5.2.160.0060.0309.18
5.2.150.0060.0319.19
5.2.140.0030.0369.18
5.2.130.0060.0299.14
5.2.120.0070.0319.15
5.2.110.0050.0509.14
5.2.100.0070.0679.15
5.2.90.0050.0489.14
5.2.80.0120.0899.14
5.2.70.0190.0929.14
5.2.60.0130.0499.09
5.2.50.0130.0499.07
5.2.40.0080.0529.03
5.2.30.0060.0579.02
5.2.20.0080.0589.00
5.2.10.0080.0378.92
5.2.00.0070.0448.78
5.1.60.0080.0468.05
5.1.50.0050.0348.06
5.1.40.0090.0328.04
5.1.30.0040.0438.39
5.1.20.0060.0298.42
5.1.10.0030.0298.14
5.1.00.0060.0278.14
5.0.50.0040.0236.61
5.0.40.0030.0236.47
5.0.30.0120.0626.29
5.0.20.0050.0186.26
5.0.10.0050.0406.23
5.0.00.0060.0466.22
4.4.90.0070.0214.78
4.4.80.0110.0484.76
4.4.70.0060.0324.75
4.4.60.0040.0204.76
4.4.50.0100.0244.77
4.4.40.0080.0464.71
4.4.30.0040.0164.76
4.4.20.0050.0194.85
4.4.10.0040.0154.85
4.4.00.0020.0274.76
4.3.110.0030.0174.67
4.3.100.0010.0174.66
4.3.90.0020.0164.64
4.3.80.0030.0314.59
4.3.70.0060.0244.63
4.3.60.0020.0224.63
4.3.50.0060.0244.63
4.3.40.0030.0314.54
4.3.30.0040.0283.28
4.3.20.0020.0403.27
4.3.10.0080.0473.23
4.3.00.0270.02313.64

preferences:
139.54 ms | 1394 KiB | 7 Q