3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PropertyTest { public function __set($name, $value) { echo "Setting '$name' to '$value'\n"; $this->data[$name] = $value; } public function __get($name) { echo "Getting '$name'\n"; if (array_key_exists($name, $this->data)) { return $this->data[$name]; } } echo "<pre>\nn"; $obj = new PropertyTest; $obj->a = 1; ?>

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.190.0270.05612.40
5.4.180.0090.04212.40
5.4.170.0090.04212.41
5.4.160.0100.04312.40
5.4.150.0140.03512.40
5.4.140.0110.03912.09
5.4.130.0110.03912.07
5.4.120.0110.03912.04
5.4.110.0130.05212.03
5.4.100.0110.03912.03
5.4.90.0130.03812.03
5.4.80.0100.04012.04
5.4.70.0090.03912.03
5.4.60.0090.03912.03
5.4.50.0100.03912.03
5.4.40.0110.03812.02
5.4.30.0100.04012.02
5.4.20.0100.04112.01
5.4.10.0100.03912.01
5.4.00.0090.04111.51
5.3.270.0120.04212.73
5.3.260.0160.05312.72
5.3.250.0150.04612.72
5.3.240.0130.04612.72
5.3.230.0150.04112.71
5.3.220.0100.04312.68
5.3.210.0150.04612.68
5.3.200.0120.04112.68
5.3.190.0100.04312.68
5.3.180.0110.04112.67
5.3.170.0090.04212.67
5.3.160.0190.04812.67
5.3.150.0140.03812.68
5.3.140.0130.03812.66
5.3.130.0120.04212.66
5.3.120.0150.03812.66
5.3.110.0130.04212.66
5.3.100.0150.04012.13
5.3.90.0090.04312.11
5.3.80.0200.06312.10
5.3.70.0100.04212.09
5.3.60.0140.03912.08
5.3.50.0130.04012.03
5.3.40.0120.04112.03
5.3.30.0120.03811.99
5.3.20.0100.04111.77
5.3.10.0110.03811.73
5.3.00.0130.03811.72

preferences:
132.99 ms | 1394 KiB | 7 Q