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();

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.0070.01418.18
8.3.50.0100.01016.25
8.3.40.0070.00718.45
8.3.30.0120.00318.95
8.3.20.0040.00420.17
8.3.10.0050.00321.97
8.3.00.0040.00420.64
8.2.180.0100.00718.66
8.2.170.0100.00722.96
8.2.160.0140.00019.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.30
8.2.110.0040.00420.29
8.2.100.0090.00319.82
8.2.90.0030.00519.13
8.2.80.0000.00817.97
8.2.70.0090.00017.50
8.2.60.0060.00317.79
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0040.00417.88
8.2.20.0000.00717.54
8.2.10.0000.00717.70
8.2.00.0060.00317.56
8.1.270.0030.00618.55
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.92
8.1.230.0000.01019.22
8.1.220.0080.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.22
8.1.190.0000.00817.43
8.1.180.0060.00318.68
8.1.170.0030.00618.55
8.1.160.0040.00422.16
8.1.150.0080.00018.57
8.1.140.0050.00317.45
8.1.130.0000.00717.74
8.1.120.0000.00817.33
8.1.110.0040.00417.45
8.1.100.0070.00017.34
8.1.90.0040.00417.38
8.1.80.0070.00017.47
8.1.70.0000.00717.32
8.1.60.0050.00317.50
8.1.50.0000.00817.51
8.1.40.0080.00017.50
8.1.30.0040.00417.53
8.1.20.0040.00417.57
8.1.10.0060.00317.51
8.1.00.0080.00017.34
8.0.300.0060.00318.77
8.0.290.0030.00317.04
8.0.280.0000.00718.38
8.0.270.0030.00317.28
8.0.260.0040.00416.64
8.0.250.0000.00616.96
8.0.240.0030.00516.80
8.0.230.0040.00416.95
8.0.220.0030.00316.90
8.0.210.0050.00316.85
8.0.200.0000.00616.90
8.0.190.0000.00816.93
8.0.180.0040.00416.86
8.0.170.0000.00816.89
8.0.160.0000.00816.80
8.0.150.0000.00716.84
8.0.140.0000.00716.79
8.0.130.0050.00013.23
8.0.120.0030.00516.68
8.0.110.0070.00016.88
8.0.100.0000.00716.87
8.0.90.0030.00516.89
8.0.80.0070.00716.80
8.0.70.0000.00716.94
8.0.60.0030.00416.73
8.0.50.0000.00716.79
8.0.30.0110.00717.08
8.0.20.0090.01217.40
8.0.10.0000.00716.89
8.0.00.0080.00916.67
7.4.330.0060.00015.00
7.4.320.0040.00416.37
7.4.300.0030.00316.44
7.4.290.0040.00416.55
7.4.280.0030.00316.43
7.4.270.0060.00016.49
7.4.260.0030.00316.43
7.4.250.0070.00016.51
7.4.240.0060.00116.44
7.4.230.0000.00716.64
7.4.220.0150.00316.50
7.4.210.0070.00916.56
7.4.200.0000.00716.55
7.4.190.0030.00316.58
7.4.160.0060.00916.40
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0120.00516.47
7.4.120.0150.00416.49
7.4.110.0140.00316.30
7.4.100.0120.00616.41
7.4.90.0100.00716.41
7.4.80.0120.00619.39
7.4.70.0070.01416.47
7.4.60.0040.01216.43
7.4.50.0030.00616.18
7.4.40.0060.00622.77
7.4.30.0000.01616.49
7.4.00.0080.00615.07
7.3.330.0050.00013.18
7.3.320.0000.00613.20
7.3.310.0000.00716.06
7.3.300.0000.00716.14
7.3.290.0050.00916.08
7.3.280.0080.00716.17
7.3.270.0130.00317.40
7.3.260.0100.00816.12
7.3.250.0130.00516.31
7.3.240.0060.01216.35
7.3.230.0090.00916.39
7.3.210.0110.00616.54
7.3.200.0070.01019.39
7.3.190.0110.00716.25
7.3.180.0130.00316.53
7.3.170.0110.01116.49
7.3.160.0120.00916.14
7.3.120.0070.00714.46
7.3.10.0060.00616.71
7.3.00.0100.00716.54
7.2.330.0150.00316.36
7.2.320.0150.00316.61
7.2.310.0070.01016.48
7.2.300.0110.00616.27
7.2.290.0090.01216.61
7.2.130.0110.00416.84
7.2.120.0030.01216.77
7.2.110.0040.00816.89
7.2.100.0070.00416.83
7.2.90.0030.01016.69
7.2.80.0040.00716.78
7.2.70.0040.01116.80
7.2.60.0000.01416.73
7.2.50.0040.01216.70
7.2.40.0030.01416.57
7.2.30.0060.00616.68
7.2.20.0120.00316.70
7.2.10.0110.00416.66
7.2.00.0020.01118.10
7.1.250.0060.00915.65
7.1.200.0060.00615.48
7.1.70.0080.00417.13
7.1.60.0100.01019.82
7.1.50.0270.01034.70
7.1.00.0000.06322.44
7.0.200.1370.00014.46
7.0.140.0030.07321.96
7.0.70.3800.03019.92
7.0.60.0030.09019.97
7.0.50.0030.07717.86
7.0.40.0200.05720.10
7.0.30.0070.08020.26
7.0.20.0270.04020.20
7.0.10.0330.06020.09
7.0.00.0030.05020.22
5.6.280.0130.06321.05
5.6.210.0170.07020.51
5.6.200.0130.07318.25
5.6.190.0100.06720.57
5.6.180.0100.04720.36
5.6.170.0430.07020.61
5.6.160.0000.06720.57
5.6.150.0100.03718.18
5.6.140.0000.04318.21
5.6.130.0100.08018.18
5.6.120.0130.07720.99
5.6.110.0070.04721.05
5.6.100.0130.06720.98
5.6.90.0030.09020.98
5.6.80.0070.05720.53
5.6.70.0270.07320.40
5.5.350.0070.08720.34
5.5.340.0030.08317.94
5.5.330.0200.06720.44
5.5.320.0270.04020.33
5.5.310.0270.06020.30
5.5.300.0030.08318.10
5.5.290.0030.06718.01
5.5.280.0030.04020.85
5.5.270.0070.08720.64
5.5.260.0000.04720.95
5.5.250.0100.08320.62
5.5.240.0100.06020.16
5.4.450.0600.07319.20
5.4.440.0900.06719.56
5.4.430.0030.06319.45
5.4.420.0270.05719.45
5.4.410.1070.06719.48
5.4.400.1000.05018.85
5.4.390.0830.05019.06
5.4.380.0130.06318.53
5.4.370.0230.03718.50
5.4.360.0370.03318.72
5.4.350.0100.05812.02
5.4.340.0100.04212.02
5.4.320.0070.05412.50
5.4.310.0090.04912.50
5.4.300.0060.03612.50
5.4.290.0060.03712.50
5.4.280.0060.04312.40
5.4.270.0060.03812.40
5.4.260.0100.03512.40
5.4.250.0170.06718.99
5.4.240.0070.05019.02
5.4.230.0000.05718.79
5.4.220.0130.05318.85
5.4.210.0070.05318.98
5.4.200.0100.04719.00
5.4.190.0100.05318.89
5.4.180.0100.04718.93
5.4.170.0100.04719.09
5.4.160.0230.06318.93
5.4.150.0070.05719.07
5.4.140.0100.05016.58
5.4.130.0030.05016.30
5.4.120.0170.05316.46
5.4.110.0070.05016.52
5.4.100.0070.04716.66
5.4.90.0070.05016.48
5.4.80.0030.05016.34
5.4.70.0130.06016.31
5.4.60.0030.05016.45
5.4.50.0130.04316.39
5.4.40.0100.04716.45
5.4.30.0000.05716.38
5.4.20.0100.04716.59
5.4.10.0070.05016.49
5.4.00.0130.04315.84
5.3.290.0020.04312.80
5.3.280.0170.04714.68
5.3.270.0030.05314.59
5.3.260.0100.05014.70
5.3.250.0030.05714.60
5.3.240.0100.05314.74
5.3.230.0070.05014.66
5.3.220.0100.04714.76
5.3.210.0000.06014.65
5.3.200.0100.04314.64
5.3.190.0030.07014.66
5.3.180.0070.05014.57
5.3.170.0100.04714.66
5.3.160.0200.04014.70
5.3.150.0070.05714.66
5.3.140.0100.04714.79
5.3.130.0030.05714.62
5.3.120.0100.05014.64
5.3.110.0100.05014.54
5.3.100.0070.05314.16
5.3.90.0170.04314.19
5.3.80.0130.04714.09
5.3.70.0100.04714.18
5.3.60.0000.06013.97
5.3.50.0100.05313.94
5.3.40.0070.05714.14
5.3.30.0100.04313.91
5.3.20.0100.04313.71
5.3.10.0070.04713.66
5.3.00.0030.06713.54
5.2.170.0100.03711.21
5.2.160.0100.04011.15
5.2.150.0030.04711.21
5.2.140.0100.03711.23
5.2.130.0030.04011.19
5.2.120.0000.04310.94
5.2.110.0030.04311.07
5.2.100.0030.04711.32
5.2.90.0030.05311.32
5.2.80.0100.03711.08
5.2.70.0030.04311.27
5.2.60.0130.03010.96
5.2.50.0030.04310.98
5.2.40.0070.04011.08
5.2.30.0070.04011.05
5.2.20.0070.04011.02
5.2.10.0130.03010.84
5.2.00.0070.03710.71
5.1.60.0000.03710.07
5.1.50.0070.03010.00
5.1.40.0000.0409.90
5.1.30.0030.03710.50
5.1.20.0030.03710.43
5.1.10.0130.03710.03
5.1.00.0100.04710.12
5.0.50.0070.0378.64
5.0.40.0000.0308.65
5.0.30.0100.0338.26
5.0.20.0070.0238.26
5.0.10.0000.0308.12
5.0.00.0100.0478.16
4.4.90.0030.0207.18
4.4.80.0000.0237.18
4.4.70.0000.0237.18
4.4.60.0000.0237.18
4.4.50.0070.0177.18
4.4.40.0000.0377.18
4.4.30.0000.0237.18
4.4.20.0000.0307.18
4.4.10.0000.0237.18
4.4.00.0030.0337.18
4.3.110.0130.0307.18
4.3.100.0030.0207.18
4.3.90.0030.0207.18
4.3.80.0030.0377.18
4.3.70.0000.0237.18
4.3.60.0000.0237.18
4.3.50.0030.0237.18
4.3.40.0030.0307.18
4.3.30.0030.0207.18
4.3.20.0000.0237.18
4.3.10.0070.0207.18
4.3.00.0070.0237.54

preferences:
52.35 ms | 400 KiB | 5 Q