3v4l.org

run code in 300+ PHP versions simultaneously
<?php function takeRef(&$foo) { $foo = "this is a string now"; } class A { private int $data = 42; public function makeString() { takeRef($this->data); var_dump($this->data); } } $a = new A(); $a->makeString();

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.3.80.0050.00518.43
8.3.70.0150.00416.63
8.3.60.0100.00618.68
8.3.50.0150.00321.98
8.3.40.0090.00918.73
8.3.30.0120.00918.79
8.3.20.0040.00420.34
8.3.10.0030.00621.95
8.3.00.0050.00321.02
8.2.200.0030.00618.55
8.2.190.0110.00416.58
8.2.180.0150.00416.88
8.2.170.0070.00722.96
8.2.160.0030.01022.96
8.2.150.0100.00024.18
8.2.140.0050.00324.66
8.2.130.0000.01422.25
8.2.120.0040.00426.35
8.2.110.0000.01121.00
8.2.100.0090.00317.88
8.2.90.0000.00720.67
8.2.80.0080.00017.97
8.2.70.0050.00318.05
8.2.60.0030.00518.22
8.2.50.0040.00418.10
8.2.40.0000.00720.55
8.2.30.0000.00720.69
8.2.20.0070.00017.75
8.2.10.0040.00418.12
8.2.00.0040.00417.95
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0150.00323.77
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0080.00420.74
8.1.230.0080.00320.91
8.1.220.0030.00517.74
8.1.210.0040.00418.80
8.1.200.0000.00817.23
8.1.190.0030.00717.23
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0000.00720.86
8.1.150.0070.00018.75
8.1.140.0070.00019.56
8.1.130.0070.00017.61
8.1.120.0070.00017.34
8.1.110.0000.00817.32
8.1.100.0080.00017.47
8.1.90.0040.00417.31
8.1.80.0040.00417.38
8.1.70.0040.00417.34
8.1.60.0000.00717.65
8.1.50.0050.00317.46
8.1.40.0040.00417.56
8.1.30.0000.00817.67
8.1.20.0000.00717.55
8.1.10.0060.00317.44
8.1.00.0000.00817.47
8.0.300.0000.00719.59
8.0.290.0000.00716.58
8.0.280.0030.00318.40
8.0.270.0000.00716.70
8.0.260.0000.00717.20
8.0.250.0030.00316.93
8.0.240.0000.00816.84
8.0.230.0000.00816.95
8.0.220.0030.00416.89
8.0.210.0030.00316.89
8.0.200.0070.00016.94
8.0.190.0040.00416.86
8.0.180.0000.00716.88
8.0.170.0000.00716.79
8.0.160.0000.00916.93
8.0.150.0000.00716.93
8.0.140.0040.00416.89
8.0.130.0000.00513.34
8.0.120.0000.00816.86
8.0.110.0000.00716.76
8.0.100.0050.00316.90
8.0.90.0040.00416.88
8.0.80.0100.00716.84
8.0.70.0050.00217.01
8.0.60.0020.00516.68
8.0.50.0000.00816.70
8.0.30.0060.01317.00
8.0.20.0130.00617.40
8.0.10.0040.00416.91
8.0.00.0110.00716.70
7.4.330.0000.00515.08
7.4.320.0000.00616.59
7.4.300.0000.00616.60
7.4.290.0070.00016.60
7.4.280.0080.00316.59
7.4.270.0030.00316.50
7.4.260.0030.00316.55
7.4.250.0030.00316.49
7.4.240.0000.00816.44
7.4.230.0000.00716.52
7.4.220.0090.00916.63
7.4.210.0040.01316.58
7.4.200.0030.00316.63
7.4.160.0100.01016.55
7.4.150.0140.00317.40
7.4.140.0100.00717.86
7.4.130.0120.01016.54
7.4.120.0050.01216.54
7.4.110.0130.00316.57
7.4.100.0150.00316.41
7.4.90.0100.00716.50
7.4.80.0090.00919.39
7.4.70.0060.01616.59
7.4.60.0160.00016.61
7.4.50.0000.01516.63
7.4.40.0100.00616.35
7.4.30.0130.00316.51
7.3.330.0000.00513.14
7.3.320.0000.00513.22
7.3.310.0000.00816.04
7.3.300.0000.00716.06
7.3.290.0000.00716.16
7.3.280.0090.00916.18
7.3.270.0090.00917.40
7.3.260.0220.00316.12
7.3.250.0090.00816.34
7.3.240.0070.01016.32
7.3.230.0070.01116.39
7.3.210.0070.01016.38
7.3.200.0120.00616.41
7.3.190.0090.00616.43
7.3.180.0130.00716.30
7.3.170.0110.00816.23
7.3.160.0140.00316.20
7.2.330.0130.00316.50
7.2.320.0100.00716.14
7.2.310.0060.01116.39
7.2.300.0070.01416.34
7.2.290.0070.01016.30
7.0.40.0130.08020.30
7.0.30.0200.05720.22
7.0.20.0170.05720.08
7.0.10.0200.05720.39
7.0.00.0200.06320.29
5.6.190.0100.06720.61
5.6.180.0070.07020.68
5.6.170.0170.07320.45
5.6.160.0130.06020.75
5.6.150.0130.06020.31
5.6.140.0070.06720.32
5.6.130.0130.06320.40
5.6.120.0130.05720.33
5.6.110.0200.07320.39
5.6.100.0130.05720.32
5.6.90.0170.06320.26
5.6.80.0270.04719.70
5.6.70.0130.05719.81
5.6.60.0100.06319.80
5.6.50.0230.05019.67
5.6.40.0130.06019.77
5.6.30.0070.06719.70
5.6.20.0170.05719.75
5.6.10.0270.05319.71
5.6.00.0400.04319.66
5.5.330.0200.05020.46
5.5.320.0300.04320.57
5.5.310.0300.04020.36
5.5.300.0130.06320.26
5.5.290.0230.05720.21
5.5.280.0100.06020.17
5.5.270.0130.06020.22
5.5.260.0170.05720.19
5.5.250.0100.06319.88
5.5.240.0170.06019.61
5.5.230.0200.05019.59
5.5.220.0230.05319.59
5.5.210.0200.05319.49
5.5.200.0070.06319.59
5.5.190.0170.06019.36
5.5.180.0230.05319.55
5.5.160.0230.05319.57
5.5.150.0300.04719.36
5.5.140.0170.05719.56
5.5.130.0230.05019.46
5.5.120.0300.07019.56
5.5.110.0170.06019.55
5.5.100.0170.05319.39
5.5.90.0100.06319.33
5.5.80.0170.05719.49
5.5.70.0170.06719.46
5.5.60.0130.05719.63
5.5.50.0130.05719.50
5.5.40.0230.06019.47
5.5.30.0170.05019.32
5.5.20.0170.05319.32
5.5.10.0100.06019.32
5.5.00.0130.05719.46

preferences:
28.32 ms | 401 KiB | 5 Q