3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $params = array(); public $testValues = array(1, 2, 3); function __construct() { } function test() { $this->params[] = &$this->testValues[0]; var_dump($this->params); } function test2() { var_dump($this->params); } } $foo = new Foo(); $foo->test(); $foo->test2();

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.0110.00418.52
8.3.50.0130.00321.19
8.3.40.0060.00918.79
8.3.30.0090.00619.02
8.3.20.0000.00720.34
8.3.10.0080.00022.01
8.3.00.0040.00422.58
8.2.180.0120.00316.34
8.2.170.0180.00322.96
8.2.160.0040.01119.20
8.2.150.0000.00824.18
8.2.140.0190.00324.66
8.2.130.0030.00726.16
8.2.120.0080.00019.54
8.2.110.0090.00022.08
8.2.100.0060.00618.09
8.2.90.0060.00319.21
8.2.80.0060.00317.97
8.2.70.0040.00417.36
8.2.60.0050.00317.80
8.2.50.0080.00018.07
8.2.40.0000.00818.14
8.2.30.0030.00617.95
8.2.20.0040.00417.67
8.2.10.0030.00617.63
8.2.00.0000.00817.63
8.1.280.0130.00725.92
8.1.270.0080.00018.69
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0030.00819.01
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0090.00017.22
8.1.190.0000.00817.41
8.1.180.0050.00320.40
8.1.170.0040.00418.58
8.1.160.0060.00322.19
8.1.150.0060.00318.49
8.1.140.0000.00717.39
8.1.130.0030.00317.91
8.1.120.0040.00417.43
8.1.110.0000.00917.40
8.1.100.0030.00317.43
8.1.90.0000.00717.39
8.1.80.0040.00417.42
8.1.70.0030.00317.39
8.1.60.0000.00817.55
8.1.50.0050.00317.58
8.1.40.0000.00717.42
8.1.30.0030.00617.63
8.1.20.0040.00417.71
8.1.10.0000.00817.57
8.1.00.0080.00417.40
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0070.00018.43
8.0.270.0050.00317.20
8.0.260.0070.00016.64
8.0.250.0000.00616.78
8.0.240.0050.00316.86
8.0.230.0070.00016.79
8.0.220.0040.00416.77
8.0.210.0070.00016.86
8.0.200.0060.00016.90
8.0.190.0040.00416.90
8.0.180.0040.00416.71
8.0.170.0040.00416.87
8.0.160.0000.00816.77
8.0.150.0000.00716.61
8.0.140.0030.00516.67
8.0.130.0030.00313.16
8.0.120.0020.00516.79
8.0.110.0000.00716.79
8.0.100.0040.00416.72
8.0.90.0000.00816.74
8.0.80.0140.00316.86
8.0.70.0040.00416.87
8.0.60.0050.00316.90
8.0.50.0030.00616.78
8.0.30.0120.00717.02
8.0.20.0090.00917.40
8.0.10.0040.00416.77
8.0.00.0040.01516.72
7.4.330.0000.00415.00
7.4.320.0030.00316.47
7.4.300.0000.00616.61
7.4.290.0080.00016.61
7.4.280.0100.00016.36
7.4.270.0050.00216.56
7.4.260.0070.00016.54
7.4.250.0000.00816.57
7.4.240.0040.00316.56
7.4.230.0000.00916.49
7.4.220.0060.00916.71
7.4.210.0080.00716.52
7.4.200.0040.00416.72
7.4.190.0040.00416.45
7.4.160.0120.00616.55
7.4.150.0120.00817.40
7.4.140.0110.00817.86
7.4.130.0090.00816.48
7.4.120.0100.00716.32
7.4.110.0160.00716.41
7.4.100.0030.01716.42
7.4.90.0060.01216.60
7.4.80.0160.00319.39
7.4.70.0090.00916.51
7.4.60.0100.01016.54
7.4.50.0030.00516.30
7.4.40.0110.00222.77
7.4.30.0050.01116.44
7.4.00.0120.00414.77
7.3.330.0000.00513.08
7.3.320.0000.00613.31
7.3.310.0040.00416.30
7.3.300.0030.00316.12
7.3.290.0100.01016.34
7.3.280.0110.00716.29
7.3.270.0070.01017.40
7.3.260.0140.00416.15
7.3.250.0130.00416.31
7.3.240.0130.00716.48
7.3.230.0160.00316.57
7.3.210.0090.01116.46
7.3.200.0130.00819.39
7.3.190.0140.00916.50
7.3.180.0090.00616.34
7.3.170.0100.01016.48
7.3.160.0080.00816.20
7.3.120.0060.01214.75
7.2.330.0090.00916.62
7.2.320.0080.01016.60
7.2.310.0130.01016.70
7.2.300.0030.01416.68
7.2.290.0030.01316.59
7.2.00.0000.01419.40
7.1.100.0000.01518.17
7.1.70.0000.00917.01
7.1.60.0160.00919.82
7.1.50.0030.00917.02
7.1.00.0030.06722.44
7.0.200.0460.01014.93
7.0.140.0070.07022.11
7.0.60.0070.07319.86
7.0.50.0100.03717.72
7.0.40.0100.04720.52
7.0.30.0270.04720.12
7.0.20.0270.08720.23
7.0.10.0100.08320.23
7.0.00.0130.07020.09
5.6.210.0070.06720.67
5.6.200.0100.08018.18
5.6.190.0130.06720.64
5.6.180.0330.04020.64
5.6.170.0230.08320.53
5.6.160.0030.06320.59
5.6.150.0070.03718.19
5.6.140.0070.03718.11
5.6.130.0100.05018.28
5.6.120.0100.08021.10
5.6.110.0070.04320.96
5.6.100.0130.08020.98
5.6.90.0170.03721.04
5.6.80.0100.03320.51
5.5.350.0100.07320.31
5.5.340.0100.07717.96
5.5.330.0100.07320.27
5.5.320.0070.07720.30
5.5.310.0230.06020.34
5.5.300.0100.08318.04
5.5.290.0100.04717.97
5.5.280.0070.03720.96
5.5.270.0000.06320.89
5.5.260.0200.07320.80
5.5.250.0070.05020.69
5.5.240.0330.07020.19
5.4.450.0000.07319.46
5.4.440.0100.03719.48
5.4.430.0030.06719.48
5.4.420.0030.05019.56
5.4.410.0000.06319.29
5.4.400.0070.06319.16
5.4.390.0030.04719.07
5.4.380.0030.05319.31
5.4.370.0030.07019.20
5.4.360.0030.04319.16
5.4.350.0070.03719.00
5.4.340.0000.07319.08
5.4.320.0000.08319.10
5.4.310.0030.07719.16
5.4.300.0030.05018.85
5.4.290.0000.05019.19
5.4.280.0070.07319.16
5.4.270.0000.04019.10
5.4.260.0000.07318.98
5.4.250.0000.07018.86
5.4.240.0030.03719.30
5.4.230.0100.03319.18
5.4.220.0070.06719.13
5.4.210.0030.06719.21
5.4.200.0030.05019.21
5.4.190.0000.04318.97
5.4.180.0030.03719.13
5.4.170.0170.06719.13
5.4.160.0230.05019.06
5.4.150.0000.06718.95
5.4.140.0000.06716.67
5.4.130.0170.02716.33
5.4.120.0000.07316.35
5.4.110.0100.06716.40
5.4.100.0030.06316.56
5.4.90.0030.07716.58
5.4.80.0070.06016.54
5.4.70.0100.04316.54
5.4.60.0070.06716.25
5.4.50.0000.04316.44
5.4.40.0030.07016.43
5.4.30.0030.07716.42
5.4.20.0030.03716.15
5.4.10.0100.05316.61
5.4.00.0030.06015.80
5.3.290.0030.07314.58
5.3.280.0030.04714.62
5.3.270.0030.06314.78
5.3.260.0030.06014.51
5.3.250.0030.06014.52
5.3.240.0000.05314.68
5.3.230.0000.04014.59
5.3.220.0070.07314.59
5.3.210.0030.08014.57
5.3.200.0000.07714.57
5.3.190.0070.07014.58
5.3.180.0000.08014.56
5.3.170.0030.05314.49
5.3.160.0030.04014.56
5.3.150.0030.07314.54
5.3.140.0030.05014.72
5.3.130.0030.06714.52
5.3.120.0030.05014.71
5.3.110.0000.04314.52
5.3.100.0000.05314.03
5.3.90.0030.05714.24
5.3.80.0030.04314.14
5.3.70.0000.06014.07
5.3.60.0030.07314.05
5.3.50.0030.06313.95
5.3.40.0100.06713.93
5.3.30.0030.07013.82
5.3.20.0000.04713.61
5.3.10.0030.07013.78
5.3.00.0030.07313.65
5.2.170.0000.04312.31
5.2.160.0100.04012.31
5.2.150.0100.04012.31
5.2.140.0070.04312.31
5.2.130.0030.04712.31
5.2.120.0070.05012.31
5.2.110.0030.06312.31
5.2.100.0030.05712.31
5.2.90.0070.03312.31
5.2.80.0030.03312.31
5.2.70.0030.05012.31
5.2.60.0030.06312.31
5.2.50.0100.04712.31
5.2.40.0070.06012.31
5.2.30.0070.05312.31
5.2.20.0030.04712.31
5.2.10.0170.03712.31
5.2.00.0070.05712.31
5.1.60.0070.05012.31
5.1.50.0070.04312.31
5.1.40.0000.04712.31
5.1.30.0000.06012.31
5.1.20.0000.04712.31
5.1.10.0030.03712.31
5.1.00.0030.05712.31
5.0.50.0000.02712.31
5.0.40.0030.02312.31
5.0.30.0030.05312.31
5.0.20.0000.02012.31
5.0.10.0000.02712.31
5.0.00.0030.04012.31
4.4.90.0000.03012.31
4.4.80.0030.03312.31
4.4.70.0000.03312.31
4.4.60.0030.02012.31
4.4.50.0000.02012.31
4.4.40.0000.03012.31
4.4.30.0000.03712.31
4.4.20.0000.02012.31
4.4.10.0000.02712.31
4.4.00.0000.04012.31
4.3.110.0030.03312.31
4.3.100.0000.02012.31
4.3.90.0000.02312.31
4.3.80.0000.05012.31
4.3.70.0000.02712.31
4.3.60.0000.03012.31
4.3.50.0000.02012.31
4.3.40.0030.04312.31
4.3.30.0070.03312.31
4.3.20.0030.03312.31
4.3.10.0000.03712.31
4.3.00.0030.02312.31

preferences:
44.11 ms | 401 KiB | 5 Q