3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @method &foo() */ class Test { public $values = []; public function &__call($name, $args) { $this->values[$name] ??= null; return $this->values[$name]; } } $test = new Test(); $foo =& $test->foo(); $foo = 42; var_dump($test->values);

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.5.00.0140.00919.99
8.4.150.0030.00014.05
8.4.140.0150.00817.58
8.4.130.0140.00817.69
8.4.120.0130.00820.71
8.4.110.0090.01122.50
8.4.100.0130.00817.67
8.4.90.0150.00522.61
8.4.80.0070.00419.59
8.4.70.0070.00117.81
8.4.60.0090.01218.40
8.4.50.0100.00818.03
8.4.40.0100.01019.59
8.4.30.0140.00720.62
8.4.20.0070.01317.91
8.4.10.0130.00620.45
8.3.280.0100.01018.29
8.3.270.0130.00616.57
8.3.260.0040.00416.69
8.3.250.0110.00718.68
8.3.240.0070.01216.45
8.3.230.0100.00916.50
8.3.220.0120.00717.12
8.3.210.0100.00416.55
8.3.200.0040.00516.56
8.3.190.0110.00818.97
8.3.180.0050.00316.65
8.3.170.0160.00316.65
8.3.160.0140.00718.25
8.3.150.0140.00420.53
8.3.140.0000.01016.42
8.3.130.0150.00316.54
8.3.120.0150.00318.87
8.3.110.0060.00320.94
8.3.100.0060.00316.65
8.3.90.0060.00326.77
8.3.80.0060.00316.50
8.3.70.0060.00916.58
8.3.60.0110.00718.33
8.3.50.0070.01120.25
8.3.40.0140.00020.96
8.3.30.0090.00619.09
8.3.20.0000.00724.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.290.0090.01120.50
8.2.280.0110.00718.44
8.2.270.0120.00617.31
8.2.260.0060.01020.13
8.2.250.0040.00418.53
8.2.240.0090.00619.06
8.2.230.0060.00322.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0070.00418.02
8.2.190.0110.00416.58
8.2.180.0120.00925.92
8.2.170.0090.00618.97
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00319.83
8.2.110.0000.00822.16
8.2.100.0090.00318.16
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0030.00517.91
8.2.50.0040.00418.07
8.2.40.0050.00319.88
8.2.30.0000.00718.11
8.2.20.0000.00720.30
8.2.10.0070.00018.01
8.2.00.0040.00419.23
8.1.330.0130.00720.06
8.1.320.0130.00816.00
8.1.310.0050.00316.59
8.1.300.0060.01316.05
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0070.00419.21
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.65
8.1.160.0000.00718.78
8.1.150.0080.00018.46
8.1.140.0040.00717.38
8.1.130.0030.00318.82
8.1.120.0030.00317.40
8.1.110.0000.00817.36
8.1.100.0040.00417.38
8.1.90.0040.00417.36
8.1.80.0040.00817.37
8.1.70.0030.00317.43
8.1.60.0030.00617.47
8.1.50.0050.00317.52
8.1.40.0170.00717.52
8.1.30.0210.00317.62
8.1.20.0140.00817.66
8.1.10.0140.01117.57
8.1.00.0160.00817.46
8.0.300.0000.00718.77
8.0.290.0000.00816.80
8.0.280.0000.00718.44
8.0.270.0030.00316.75
8.0.260.0050.00318.34
8.0.250.0000.00616.93
8.0.240.0030.00316.91
8.0.230.0000.00716.91
8.0.220.0070.00016.80
8.0.210.0000.00716.83
8.0.200.0000.00816.93
8.0.190.0040.00416.88
8.0.180.0000.00716.82
8.0.170.0160.00416.68
8.0.160.0130.00716.66
8.0.150.0120.00916.72
8.0.140.0130.00916.61
8.0.130.0220.00016.70
8.0.120.0250.00016.79
8.0.110.0210.00016.76
8.0.100.0180.00516.68
8.0.90.0210.00016.81
8.0.80.0150.00716.77
8.0.70.0190.00316.63
8.0.60.0170.00416.43
8.0.50.0040.01216.33
8.0.30.0030.01016.49
8.0.20.0030.00616.90
8.0.10.0000.00916.84
7.4.330.0000.00515.55
7.4.320.0040.00416.39
7.4.300.0000.00716.47
7.4.290.0040.00416.53
7.4.280.0000.00816.43
7.4.270.0000.00816.61
7.4.260.0030.00716.34
7.4.250.0040.00416.50
7.4.240.0060.00316.50
7.4.230.0040.00616.58
7.4.220.0080.00315.99
7.4.210.0050.00516.29
7.4.200.0030.00716.11
7.4.190.0000.00916.08
7.4.180.0000.00815.89
7.4.160.0080.00015.93
7.4.150.0050.00516.04
7.4.140.0040.00415.96
7.4.130.0040.00516.23
7.4.120.0000.01015.98
7.4.110.0080.00015.84
7.4.100.0030.00816.03
7.4.90.0040.00516.01
7.4.80.0050.00315.63
7.4.70.0120.00015.70
7.4.60.0080.00315.87
7.4.50.0050.00515.82
7.4.40.0070.00416.04
7.4.30.0050.00515.83
7.4.20.0110.00015.73
7.4.10.0100.00016.10
7.4.00.0090.00315.75

preferences:
101.81 ms | 403 KiB | 5 Q