3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $prop; public function &getProp() { return $this->prop; } public function setProp($value) { echo "Setting \$prop: $value\n"; $this->prop = $value; } } $c = new C(); $c->setProp(42); $prop = &$c->getProp(); $prop++; var_dump($c);

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)
8.4.120.0040.00523.94
8.4.110.0070.00418.91
8.4.100.0090.01118.98
8.4.90.0140.00617.70
8.4.80.0100.00722.57
8.4.70.0050.00419.57
8.4.60.0080.00318.79
8.4.50.0110.00920.30
8.4.40.0040.00417.68
8.4.30.0110.00720.62
8.4.20.0060.00319.76
8.4.10.0070.01019.58
8.3.250.0130.00518.86
8.3.240.0120.00917.02
8.3.230.0110.00916.55
8.3.220.0090.00417.30
8.3.210.0050.00316.53
8.3.200.0050.00416.52
8.3.190.0070.00716.96
8.3.180.0050.00317.04
8.3.170.0070.01119.23
8.3.160.0110.00717.18
8.3.150.0060.01317.39
8.3.140.0080.00016.81
8.3.130.0140.00718.54
8.3.120.0100.01021.02
8.3.110.0090.00016.57
8.3.100.0080.00024.06
8.3.90.0050.00226.77
8.3.80.0060.00317.97
8.3.70.0120.00318.15
8.3.60.0040.01116.55
8.3.50.0150.00616.69
8.3.40.0220.00919.63
8.3.30.0140.00918.98
8.3.20.0120.00721.79
8.3.10.0140.00721.64
8.3.00.0160.00818.79
8.2.290.0130.00620.66
8.2.280.0140.00318.24
8.2.270.0090.00917.28
8.2.260.0060.00318.17
8.2.250.0000.00818.49
8.2.240.0160.00317.13
8.2.230.0000.00920.94
8.2.220.0150.00637.54
8.2.210.0050.00326.77
8.2.200.0030.00618.29
8.2.190.0090.00616.58
8.2.180.0120.00316.61
8.2.170.0210.00518.78
8.2.160.0190.00619.91
8.2.150.0080.01219.05
8.2.140.0080.00720.51
8.2.130.0080.00720.45
8.2.120.0050.01419.17
8.2.110.0110.00620.21
8.2.100.0060.01119.27
8.2.90.0140.00318.88
8.2.80.0100.00519.22
8.2.70.0090.00718.63
8.2.60.0140.00518.79
8.2.50.0150.00318.99
8.2.40.0130.00618.89
8.2.30.0130.00818.80
8.2.20.0130.00418.60
8.2.10.0070.01318.68
8.2.00.0140.00718.67
8.1.330.0120.00722.00
8.1.320.0130.00615.88
8.1.310.0150.00416.33
8.1.300.0030.00620.31
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0100.00522.04
8.1.260.0100.00722.06
8.1.250.0070.00922.05
8.1.240.0140.00718.66
8.1.230.0170.00518.52
8.1.220.0180.00318.71
8.1.210.0140.00518.44
8.1.200.0160.00218.65
8.1.190.0150.00318.54
8.1.180.0140.00718.17
8.1.170.0140.00518.52
8.1.160.0150.00518.36
8.1.150.0130.00718.53
8.1.140.0160.00618.65
8.1.130.0150.00318.60
8.1.120.0180.00218.55
8.1.110.0160.00518.42
8.1.100.0110.01019.67
8.1.90.0150.00418.42
8.1.80.0090.00919.77
8.1.70.0130.00818.69
8.1.60.0110.00918.67
8.1.50.0200.00518.65
8.1.40.0170.00118.74
8.1.30.0110.00318.88
8.1.20.0070.00720.03
8.1.10.0110.00718.50
8.1.00.0110.00718.56

preferences:
65.12 ms | 403 KiB | 5 Q