3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $_test=array("Test1", "Test2"); private function &getTest() { return $this->_test; } public function tst() { $test=&$this->getTest(); $test[1]="xxx"; print_r($this->_test); } } $test=new Test(); $test->tst();

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.31
8.3.50.0070.00922.06
8.3.40.0100.01018.70
8.3.30.0040.01118.96
8.3.20.0040.00420.25
8.3.10.0050.00322.10
8.3.00.0000.00822.39
8.2.180.0110.00718.29
8.2.170.0180.00422.96
8.2.160.0100.00320.80
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00317.63
8.2.110.0090.00022.16
8.2.100.0080.00417.91
8.2.90.0000.00819.07
8.2.80.0060.00317.97
8.2.70.0040.00417.47
8.2.60.0040.00418.03
8.2.50.0080.00018.07
8.2.40.0000.00718.16
8.2.30.0040.00418.00
8.2.20.0070.00017.66
8.2.10.0000.00717.55
8.2.00.0080.00317.55
8.1.280.0140.00725.92
8.1.270.0000.00823.83
8.1.260.0040.00426.35
8.1.250.0000.01428.09
8.1.240.0000.00923.91
8.1.230.0080.00419.21
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0050.00318.10
8.1.170.0040.00418.51
8.1.160.0050.00321.87
8.1.150.0060.00318.45
8.1.140.0040.00417.39
8.1.130.0000.00717.73
8.1.120.0040.00417.39
8.1.110.0030.00517.33
8.1.100.0040.00417.29
8.1.90.0080.00417.41
8.1.80.0070.00017.33
8.1.70.0080.00017.42
8.1.60.0040.00417.59
8.1.50.0050.00317.46
8.1.40.0040.00417.54
8.1.30.0040.00417.64
8.1.20.0050.00217.63
8.1.10.0050.00317.42
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0030.00318.31
8.0.270.0040.00417.11
8.0.260.0000.00616.66
8.0.250.0000.00716.82
8.0.240.0040.00416.80
8.0.230.0030.00316.89
8.0.220.0040.00416.85
8.0.210.0000.00716.78
8.0.200.0030.00316.93
8.0.190.0040.00416.85
8.0.180.0040.00416.83
8.0.170.0040.00416.75
8.0.160.0000.00716.86
8.0.150.0030.00316.85
8.0.140.0040.00416.79
8.0.130.0000.00813.32
8.0.120.0000.00716.63
8.0.110.0020.00516.67
8.0.100.0000.00716.71
8.0.90.0050.00316.70
8.0.80.0110.01116.75
8.0.70.0000.00716.94
8.0.60.0020.00516.78
8.0.50.0000.00816.86
8.0.30.0120.00817.13
8.0.20.0140.00517.40
8.0.10.0070.00016.80
8.0.00.0080.01116.54
7.4.330.0050.00015.00
7.4.320.0030.00316.47
7.4.300.0040.00416.59
7.4.290.0000.00816.41
7.4.280.0030.00316.58
7.4.270.0030.00316.36
7.4.260.0050.00216.41
7.4.250.0080.00016.55
7.4.240.0030.00316.58
7.4.230.0040.00416.67
7.4.220.0030.01316.62
7.4.210.0100.00416.54
7.4.200.0070.00016.34
7.4.190.0000.00816.49
7.4.160.0160.00316.52
7.4.150.0070.01017.40
7.4.140.0070.01017.86
7.4.130.0080.01116.38
7.4.120.0050.01316.57
7.4.110.0080.00816.38
7.4.100.0070.01016.49
7.4.90.0080.01116.42
7.4.80.0120.00616.54
7.4.70.0070.01316.27
7.4.60.0080.00816.50
7.4.50.0040.00416.23
7.4.40.0070.00722.77
7.4.30.0060.00916.50
7.4.00.0070.01114.97
7.3.330.0030.00313.16
7.3.320.0050.00013.10
7.3.310.0030.00316.28
7.3.300.0070.00016.34
7.3.290.0110.00316.26
7.3.280.0100.00716.30
7.3.270.0070.01017.40
7.3.260.0100.00716.44
7.3.250.0130.00416.45
7.3.240.0130.00416.55
7.3.230.0060.01016.39
7.3.210.0060.01016.24
7.3.200.0140.00419.39
7.3.190.0120.00616.35
7.3.180.0100.01416.45
7.3.170.0060.00916.29
7.3.160.0100.01016.60
7.3.120.0040.01114.78
7.2.330.0110.00716.36
7.2.320.0130.00316.76
7.2.310.0130.00616.63
7.2.300.0070.01016.48
7.2.290.0070.01716.69
7.2.00.0090.00619.21
7.1.100.0070.00718.09
7.1.70.0080.00317.30
7.1.60.0100.01619.82
7.1.50.0060.00616.60
7.1.00.0000.07722.30
7.0.200.0110.00016.61
7.0.140.0030.07322.18
7.0.100.0030.04719.95
7.0.90.0030.05019.97
7.0.80.0100.08019.92
7.0.70.0070.06320.14
7.0.60.0100.04720.07
7.0.50.0000.04320.27
7.0.40.0100.06020.05
7.0.30.0000.05020.07
7.0.20.0000.04720.10
7.0.10.0130.06319.99
7.0.00.0000.04719.95
5.6.250.0100.08020.73
5.6.240.0070.05020.61
5.6.230.0030.08320.67
5.6.220.0030.04020.53
5.6.210.0100.07320.65
5.6.200.0030.04321.05
5.6.190.0170.06721.11
5.6.180.0130.08321.11
5.6.170.0070.08021.14
5.6.160.0070.05021.07
5.6.150.0070.04020.94
5.6.140.0170.07020.92
5.6.130.0070.04320.96
5.6.120.0100.05320.93
5.6.110.0070.06021.00
5.6.100.0070.07321.13
5.6.90.0200.06020.93
5.6.80.0200.03720.51
5.6.70.0130.06720.51
5.6.60.0030.07020.40
5.6.50.0000.04720.49
5.6.40.0130.07720.41
5.6.30.0030.08720.45
5.6.20.0000.04320.32
5.6.10.0000.04720.47
5.6.00.0100.03320.45
5.5.380.0030.04720.48
5.5.370.0030.07020.55
5.5.360.0130.07020.51
5.5.350.0000.06320.43
5.5.340.0070.07320.92
5.5.330.0070.04020.92
5.5.320.0100.06720.89
5.5.310.0030.08720.89
5.5.300.0130.04720.73
5.5.290.0100.08020.89
5.5.280.0030.06020.93
5.5.270.0130.07320.88
5.5.260.0030.06320.86
5.5.250.0070.05020.67
5.5.240.0070.06720.32
5.5.230.0070.04720.09
5.5.220.0000.04320.13
5.5.210.0030.07720.21
5.5.200.0130.07320.28
5.5.190.0070.03720.26
5.5.180.0070.03720.15
5.5.160.0100.03020.27
5.5.150.0130.06320.25
5.5.140.0070.06019.96
5.5.130.0100.06320.24
5.5.120.0170.06020.24
5.5.110.0030.07020.11
5.5.100.0030.04720.06
5.5.90.0070.07320.07
5.5.80.0070.07020.11
5.5.70.0130.03019.94
5.5.60.0030.06720.05
5.5.50.0000.04320.08
5.5.40.0000.04320.16
5.5.30.0000.07020.05
5.5.20.0070.08020.11
5.5.10.0030.04020.13
5.5.00.0030.07720.12
5.4.450.0200.04719.36
5.4.440.0030.05319.18
5.4.430.0100.07719.16
5.4.420.0000.04319.45
5.4.410.0130.03019.38
5.4.400.0170.05719.17
5.4.390.0000.08019.14
5.4.380.0030.05019.05
5.4.370.0170.06719.13
5.4.360.0100.05019.18
5.4.350.0100.05719.09
5.4.340.0070.03319.24
5.4.320.0030.06019.04
5.4.310.0130.04319.04
5.4.300.0100.05319.08
5.4.290.0070.07719.12
5.4.280.0070.03019.13
5.4.270.0000.04318.91
5.4.260.0030.05719.03
5.4.250.0070.06319.12
5.4.240.0030.03719.14
5.4.230.0070.04319.04
5.4.220.0000.04319.12
5.4.210.0070.03318.89
5.4.200.0100.03319.13
5.4.190.0070.03319.13
5.4.180.0070.05319.02
5.4.170.0030.06019.15
5.4.160.0030.05719.00
5.4.150.0070.04019.02
5.4.140.0070.03716.30
5.4.130.0100.03016.45
5.4.120.0030.07016.41
5.4.110.0030.03716.43
5.4.100.0000.03316.33
5.4.90.0200.02316.47
5.4.80.0000.04016.50
5.4.70.0000.03716.47
5.4.60.0030.03716.45
5.4.50.0000.04016.48
5.4.40.0030.03716.46
5.4.30.0000.06016.41
5.4.20.0030.04016.39
5.4.10.0000.04716.24
5.4.00.0030.03315.85
5.3.290.0100.04314.62
5.3.280.0000.04714.71
5.3.270.0070.03314.73
5.3.260.0070.05314.69
5.3.250.0100.07314.53
5.3.240.0070.05314.60
5.3.230.0030.03714.67
5.3.220.0070.03714.66
5.3.210.0000.04014.63
5.3.200.0030.04714.64
5.3.190.0000.04314.71
5.3.180.0070.03314.54
5.3.170.0030.04014.52
5.3.160.0070.03314.49
5.3.150.0070.03314.58
5.3.140.0030.04314.70
5.3.130.0070.04714.66
5.3.120.0030.04014.52
5.3.110.0070.03714.51
5.3.100.0000.04314.07
5.3.90.0070.03314.00
5.3.80.0070.03314.04
5.3.70.0000.04014.15
5.3.60.0000.04014.11
5.3.50.0030.03713.89
5.3.40.0000.04014.06
5.3.30.0000.04013.89
5.3.20.0030.05313.76
5.3.10.0000.03313.64
5.3.00.0000.03313.70
5.2.170.0000.03711.97
5.2.160.0000.02711.97
5.2.150.0000.02711.97
5.2.140.0000.02711.97
5.2.130.0030.03711.97
5.2.120.0030.02711.97
5.2.110.0000.02711.97
5.2.100.0000.03711.97
5.2.90.0030.02711.97
5.2.80.0030.02311.97
5.2.70.0000.03011.97
5.2.60.0000.03311.97
5.2.50.0030.02711.97
5.2.40.0100.02011.97
5.2.30.0100.01711.97
5.2.20.0030.05711.97
5.2.10.0030.02711.97
5.2.00.0000.02311.97
5.1.60.0100.01711.97
5.1.50.0030.02711.97
5.1.40.0030.02011.97
5.1.30.0000.02711.97
5.1.20.0030.02711.97
5.1.10.0030.02011.97
5.1.00.0000.02311.97
5.0.50.0000.02011.97
5.0.40.0000.01711.97
5.0.30.0030.03711.97
5.0.20.0030.02311.97
5.0.10.0070.01711.97
5.0.00.0000.02711.97
4.4.90.0030.01311.97
4.4.80.0030.01311.97
4.4.70.0030.02311.97
4.4.60.0030.03311.97
4.4.50.0030.02011.97
4.4.40.0000.02311.97
4.4.30.0000.01711.97
4.4.20.0000.01311.97
4.4.10.0000.01311.97
4.4.00.0000.02011.97
4.3.110.0000.01311.97
4.3.100.0000.02011.97
4.3.90.0000.01711.97
4.3.80.0000.02011.97
4.3.70.0000.01311.97
4.3.60.0000.03011.97
4.3.50.0030.01711.97
4.3.40.0070.01711.97
4.3.30.0070.01011.97
4.3.20.0000.01711.97
4.3.10.0030.01011.97
4.3.00.0000.01311.97

preferences:
46.09 ms | 401 KiB | 5 Q