3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; protected $names=array('test'=>1); protexted $values=array('test value'); public function __get($property) { return $this->values[$property]; } public function __set($property, $value) { $this->values[$property]=$value; } } $foo= new $Foo(); echo $foo;

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.270.0050.04515.66
5.4.260.0070.04515.65
5.4.250.0060.04615.60
5.4.240.0060.04615.64
5.4.230.0120.04415.75
5.4.220.0070.05015.64
5.4.210.0100.04215.64
5.4.200.0020.05315.72
5.4.190.0090.04315.68
5.4.180.0050.04615.67
5.4.170.0100.04315.69
5.4.160.0070.04615.72
5.4.150.0070.05715.60
5.4.140.0080.05314.23
5.4.130.0020.04614.32
5.4.120.0080.04214.30
5.4.110.0090.05014.34
5.4.100.0060.05014.34
5.4.90.0010.05014.32
5.4.80.0060.04414.30
5.4.70.0040.04614.27
5.4.60.0060.04214.19
5.4.50.0060.05114.27
5.4.40.0080.04314.29
5.4.30.0060.04614.28
5.4.20.0060.04814.30
5.4.10.0050.04514.30
5.4.00.0070.04613.84
5.3.280.0130.04513.80
5.3.270.0050.05313.71
5.3.260.0060.04913.81
5.3.250.0010.05213.80
5.3.240.0020.05913.75
5.3.230.0060.04613.59
5.3.220.0110.04413.73
5.3.210.0110.04313.57
5.3.200.0060.05313.71
5.3.190.0070.04413.76
5.3.180.0090.04013.64
5.3.170.0060.04813.71
5.3.160.0100.04613.76
5.3.150.0090.05113.56
5.3.140.0100.04213.75
5.3.130.0160.04913.74
5.3.120.0050.05013.74
5.3.110.0060.04813.63
5.3.100.0090.05113.18
5.3.90.0050.05713.11
5.3.80.0050.04713.19
5.3.70.0040.05113.15
5.3.60.0050.04513.13
5.3.50.0040.04613.06
5.3.40.0090.04513.03
5.3.30.0090.05112.96
5.3.20.0070.04212.86
5.3.10.0100.04812.80
5.3.00.0110.04712.77

preferences:
144.2 ms | 1394 KiB | 7 Q