3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public readonly int $bar; public function set(int &$i) { $this->bar = &$i; } } $i = 1; $foo = new Foo(); $foo->set($i); $i = 20; var_dump($foo->bar);

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.30.0100.00620.08
8.5.20.0100.00719.45
8.5.10.0120.00518.77
8.5.00.0110.01120.24
8.4.180.0130.01019.83
8.4.170.0080.01323.67
8.4.160.0130.00923.16
8.4.150.0080.00416.91
8.4.140.0060.00318.02
8.4.130.0100.00817.78
8.4.120.0080.01120.68
8.4.110.0100.00920.52
8.4.100.0070.00418.00
8.4.90.0070.00220.84
8.4.80.0130.00620.49
8.4.70.0130.00918.96
8.4.60.0130.00720.36
8.4.50.0120.00822.02
8.4.40.0100.01018.08
8.4.30.0080.00020.69
8.4.20.0030.01418.20
8.4.10.0060.01019.62
8.3.300.0110.00920.73
8.3.290.0100.01120.67
8.3.280.0120.00818.34
8.3.270.0120.00716.35
8.3.260.0130.00616.63
8.3.250.0080.00818.66
8.3.240.0120.00616.73
8.3.230.0150.00416.49
8.3.220.0040.00318.80
8.3.210.0040.00316.75
8.3.200.0030.00616.61
8.3.190.0110.00917.13
8.3.180.0100.00818.72
8.3.170.0070.01116.83
8.3.160.0100.00616.69
8.3.150.0060.01317.32
8.3.140.0170.00316.69
8.3.130.0060.00918.40
8.3.120.0150.00418.57
8.3.110.0160.00320.94
8.3.100.0060.00316.76
8.3.90.0070.00316.87
8.3.50.0080.00016.63
8.2.300.0110.01118.24
8.2.290.0140.00416.82
8.2.280.0130.00718.64
8.2.270.0060.01316.87
8.2.260.0090.00917.13
8.2.250.0050.00318.68
8.2.240.0040.00417.22
8.2.230.0030.00622.58
8.2.220.0060.00316.81
8.2.210.0100.00016.79
8.1.340.0040.00517.75
8.1.330.0130.00616.21
8.1.320.0090.01116.30
8.1.310.0030.01416.87
8.1.300.0080.00018.00
8.1.70.0040.00417.34
8.1.60.0080.00517.55
8.1.30.0040.00417.65
8.1.10.0090.00417.45
8.1.00.0120.00217.41
8.0.140.0110.00216.71
8.0.130.0080.00416.65
8.0.120.0090.00316.70
8.0.110.0060.00616.71
8.0.100.0070.00516.70
8.0.90.0060.00616.73
8.0.80.0090.00316.69
8.0.70.0070.00616.66
8.0.60.0090.00316.78
8.0.50.0070.00516.86
8.0.30.0070.00416.74
8.0.20.0070.00416.86
8.0.10.0060.00516.87
7.4.270.0040.00416.20
7.4.260.0070.00516.11
7.4.250.0050.00716.28
7.4.240.0080.00316.23
7.4.230.0060.00516.21
7.4.220.0090.00216.19
7.4.210.0080.00316.21
7.4.200.0060.00516.30
7.4.190.0070.00416.39
7.4.180.0050.00516.27
7.4.160.0070.00416.32
7.4.150.0060.00416.28
7.4.140.0080.00316.11
7.4.130.0080.00316.15
7.4.120.0080.00516.13
7.4.110.0080.00516.14
7.4.100.0080.00416.33
7.4.90.0080.00316.14
7.4.80.0070.00516.07
7.4.70.0060.00616.11
7.4.60.0100.00216.00
7.4.50.0060.00516.10
7.4.40.0060.00516.00
7.4.30.0040.00616.07
7.4.20.0070.00316.14
7.4.10.0060.00416.09
7.4.00.0060.00616.16

preferences:
61.92 ms | 931 KiB | 5 Q