3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $value = 3; function &getValue() { return $this->value; } function test() { $params = array(); $params[] = &$this->getValue(); $params[] = $this->getValue(); return $params; } } $foo = new Foo(); var_dump($foo->test());

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.60.0170.00318.55
8.3.50.0150.00321.27
8.3.40.0060.00918.59
8.3.30.0090.00619.24
8.3.20.0080.00020.39
8.3.10.0080.00022.05
8.3.00.0080.00020.61
8.2.180.0110.00718.33
8.2.170.0150.00022.96
8.2.160.0100.00320.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0170.00319.65
8.2.110.0070.00419.40
8.2.100.0060.00617.91
8.2.90.0080.00019.22
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0030.00517.87
8.2.50.0030.00518.07
8.2.40.0050.00218.16
8.2.30.0030.00517.98
8.2.20.0050.00317.53
8.2.10.0040.00417.69
8.2.00.0030.00617.71
8.1.280.0060.00925.92
8.1.270.0090.00618.63
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0110.00822.14
8.1.230.0040.00819.14
8.1.220.0030.00517.74
8.1.210.0060.00318.77
8.1.200.0040.00717.35
8.1.190.0000.00817.35
8.1.180.0000.00718.66
8.1.170.0040.00418.50
8.1.160.0030.00322.01
8.1.150.0070.00018.50
8.1.140.0000.00717.30
8.1.130.0000.00817.84
8.1.120.0030.00317.35
8.1.110.0040.00417.39
8.1.100.0030.00517.37
8.1.90.0000.00717.32
8.1.80.0080.00017.44
8.1.70.0000.00717.36
8.1.60.0040.00417.62
8.1.50.0040.00417.45
8.1.40.0030.00617.48
8.1.30.0070.00017.55
8.1.20.0080.00017.62
8.1.10.0060.00317.47
8.1.00.0080.00017.48
8.0.300.0040.00419.96
8.0.290.0000.00916.63
8.0.280.0000.00718.26
8.0.270.0030.00317.11
8.0.260.0050.00216.82
8.0.250.0070.00016.81
8.0.240.0000.00816.94
8.0.230.0030.00316.77
8.0.220.0080.00016.77
8.0.210.0050.00316.83
8.0.200.0030.00316.89
8.0.190.0040.00416.96
8.0.180.0080.00016.83
8.0.170.0000.00816.84
8.0.160.0030.00516.70
8.0.150.0040.00416.75
8.0.140.0030.00516.77
8.0.130.0000.00713.25
8.0.120.0030.00616.88
8.0.110.0040.00316.85
8.0.100.0040.00316.79
8.0.90.0000.00716.85
8.0.80.0070.00716.83
8.0.70.0040.00416.73
8.0.60.0030.00616.73
8.0.50.0050.00316.71
8.0.30.0140.00417.03
8.0.20.0090.01417.40
8.0.10.0030.00616.84
8.0.00.0100.00816.79
7.4.330.0040.00015.00
7.4.320.0000.00616.50
7.4.300.0030.00316.43
7.4.290.0000.00716.63
7.4.280.0000.00716.51
7.4.270.0000.00616.48
7.4.260.0000.00716.63
7.4.250.0040.00416.50
7.4.240.0020.00516.48
7.4.230.0060.00016.43
7.4.220.0060.01216.63
7.4.210.0070.00916.51
7.4.200.0040.00416.63
7.4.190.0000.00716.56
7.4.160.0060.00916.36
7.4.150.0090.00917.40
7.4.140.0160.00517.86
7.4.130.0110.00716.47
7.4.120.0080.00916.46
7.4.110.0030.01416.64
7.4.100.0060.01316.45
7.4.90.0090.00916.51
7.4.80.0090.00919.39
7.4.70.0030.01316.32
7.4.60.0070.01316.45
7.4.50.0000.00716.28
7.4.40.0060.01022.77
7.4.30.0090.00616.40
7.4.00.0060.00915.12
7.3.330.0020.00213.29
7.3.320.0030.00313.17
7.3.310.0000.00716.37
7.3.300.0030.00316.23
7.3.290.0000.01416.34
7.3.280.0080.00916.36
7.3.270.0100.00617.40
7.3.260.0100.01016.40
7.3.250.0080.00816.35
7.3.240.0160.00716.30
7.3.230.0060.00916.40
7.3.210.0080.01216.40
7.3.200.0090.00916.66
7.3.190.0120.00616.58
7.3.180.0070.01016.35
7.3.170.0030.01316.61
7.3.160.0070.01416.48
7.3.120.0130.00314.59
7.3.10.0080.00616.61
7.3.00.0050.00816.58
7.2.330.0080.01216.44
7.2.320.0130.01216.45
7.2.310.0070.01316.39
7.2.300.0040.01416.78
7.2.290.0090.00616.45
7.2.130.0080.00616.89
7.2.120.0070.00816.88
7.2.110.0100.00516.75
7.2.100.0030.00916.63
7.2.90.0050.00916.85
7.2.80.0060.00717.00
7.2.70.0080.00816.66
7.2.60.0070.00516.87
7.2.50.0030.01016.84
7.2.40.0060.00816.99
7.2.30.0060.00616.73
7.2.20.0070.00816.92
7.2.10.0050.01016.98
7.2.00.0040.00717.58
7.1.250.0110.00515.62
7.1.100.0130.00917.63
7.1.70.0000.00916.86
7.1.60.0140.01119.82
7.1.50.0030.01216.92
7.1.00.0030.05022.42
7.0.200.0710.00614.76
7.0.140.0000.07322.09
7.0.60.0070.08319.98
7.0.50.0070.03717.91
7.0.40.0030.08720.13
7.0.30.0130.04720.11
7.0.20.0300.07320.32
7.0.10.0300.07720.21
7.0.00.0070.07320.08
5.6.280.0000.07721.13
5.6.210.0030.08720.63
5.6.200.0000.05318.16
5.6.190.0000.08720.64
5.6.180.3730.03720.49
5.6.170.0170.04020.48
5.6.160.0030.04720.44
5.6.150.0100.08018.14
5.6.140.0070.04718.18
5.6.130.0070.04718.13
5.6.120.0030.09020.97
5.6.110.0130.06020.99
5.6.100.0100.07721.01
5.6.90.0030.09021.02
5.6.80.0200.06320.41
5.6.70.0130.06020.38
5.5.350.0130.05720.46
5.5.340.0100.03717.90
5.5.330.0030.04320.31
5.5.320.0270.07720.36
5.5.310.0170.04720.24
5.5.300.0130.07318.01
5.5.290.0100.08017.97
5.5.280.0100.08020.97
5.5.270.0070.04720.67
5.5.260.0100.08320.74
5.5.250.0100.04320.58
5.5.240.0030.04020.19
5.4.450.0630.05019.74
5.4.440.0900.05019.47
5.4.430.0700.05719.65
5.4.420.0430.05019.63
5.4.410.0030.05719.18
5.4.400.0170.05718.50
5.4.390.0170.05018.72
5.4.380.0400.05318.84
5.4.370.0370.03018.66
5.4.360.0100.05718.50
5.4.350.0070.03612.02
5.4.340.0120.06412.02
5.4.320.0060.03512.50
5.4.310.0080.05012.50
5.4.300.0040.04112.51
5.4.290.0060.04212.50
5.4.280.0100.03312.40
5.4.270.0060.04212.40
5.4.260.0050.03912.40
5.4.250.0070.05718.96
5.4.240.0030.05718.94
5.4.230.0070.05318.64
5.4.220.0030.05719.02
5.4.210.0070.05318.64
5.4.200.0200.03718.98
5.4.190.0100.05018.98
5.4.180.0070.07318.93
5.4.170.0030.05719.09
5.4.160.0100.07318.79
5.4.150.0170.04319.08
5.4.140.0000.05716.39
5.4.130.0030.05016.30
5.4.120.0070.05016.32
5.4.110.0070.05316.57
5.4.100.0130.04316.40
5.4.90.0100.04716.62
5.4.80.0000.07716.34
5.4.70.0000.06716.37
5.4.60.0070.06316.45
5.4.50.0070.04716.48
5.4.40.0030.07316.54
5.4.30.0030.07316.52
5.4.20.0070.05016.53
5.4.10.0200.06016.30
5.4.00.0030.05015.79
5.3.290.0030.04212.80
5.3.280.0000.06014.66
5.3.270.0030.05714.85
5.3.260.0070.07714.70
5.3.250.0100.04714.62
5.3.240.0030.05714.77
5.3.230.0030.05314.62
5.3.220.0170.04314.73
5.3.210.0100.05014.59
5.3.200.0070.05014.55
5.3.190.0030.07314.64
5.3.180.0100.06014.65
5.3.170.0030.05314.75
5.3.160.0100.06314.55
5.3.150.0070.06314.54
5.3.140.0100.07014.57
5.3.130.0000.06014.71
5.3.120.0070.05314.77
5.3.110.0070.06314.77
5.3.100.0070.05014.18
5.3.90.0100.04714.10
5.3.80.0070.05314.10
5.3.70.0030.05314.10
5.3.60.0200.03714.08
5.3.50.0130.06314.04
5.3.40.0030.06314.18
5.3.30.0100.04313.82
5.3.20.0100.04713.70
5.3.10.0070.05013.64
5.3.00.0070.04713.86
5.2.170.0030.04311.23
5.2.160.0070.03711.15
5.2.150.0000.04311.13
5.2.140.0030.04011.32
5.2.130.0070.03711.09
5.2.120.0100.03311.19
5.2.110.0030.05011.07
5.2.100.0070.04011.33
5.2.90.0030.05711.20
5.2.80.0000.04711.16
5.2.70.0000.04311.10
5.2.60.0070.03711.10
5.2.50.0000.04311.09
5.2.40.0130.03310.90
5.2.30.0030.04011.20
5.2.20.0030.05011.04
5.2.10.0000.04710.77
5.2.00.0000.04310.73
5.1.60.0030.03310.07
5.1.50.0070.04710.09
5.1.40.0070.03010.05
5.1.30.0030.03310.40
5.1.20.0070.05010.31
5.1.10.0070.04010.16
5.1.00.0030.03710.13
5.0.50.0000.0308.62
5.0.40.0000.0278.47
5.0.30.0030.0608.29
5.0.20.0030.0238.20
5.0.10.0070.0238.23
5.0.00.0030.0378.20
4.4.90.0000.0237.20
4.4.80.0030.0207.20
4.4.70.0070.0177.20
4.4.60.0030.0277.20
4.4.50.0000.0307.20
4.4.40.0070.0377.20
4.4.30.0000.0237.20
4.4.20.0030.0207.20
4.4.10.0000.0237.20
4.4.00.0030.0307.20
4.3.110.0000.0277.20
4.3.100.0000.0207.20
4.3.90.0000.0207.20
4.3.80.0070.0277.20
4.3.70.0030.0207.20
4.3.60.0030.0207.20
4.3.50.0000.0237.20
4.3.40.0070.0277.20
4.3.30.0000.0237.20
4.3.20.0000.0237.20
4.3.10.0000.0237.20
4.3.00.0070.0176.75

preferences:
40.96 ms | 400 KiB | 5 Q