3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( "foo" => "bar", "bar" => "foo", 100 => -100, -100 => 100, ); var_dump($array); //$array = array("foo", "bar", "hallo", "world"); //var_dump($array); //function prende_array($input) //{foreach ($imput as $i => $value){ // echo $input[$i];} //} //unset($input); //$imput = array("a"); //prende_array($imput); //var_dump($imput); ?>

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.0150.00416.13
8.3.50.0120.00422.11
8.3.40.0150.00618.47
8.3.30.0070.00719.02
8.3.20.0000.00720.16
8.3.10.0040.00423.61
8.3.00.0030.00719.56
8.2.180.0040.01816.63
8.2.170.0180.00422.96
8.2.160.0070.00720.27
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0060.00320.97
8.2.110.0100.00019.27
8.2.100.0060.00617.91
8.2.90.0040.00419.25
8.2.80.0000.00817.97
8.2.70.0060.00317.36
8.2.60.0030.00617.93
8.2.50.0040.00418.10
8.2.40.0080.00020.42
8.2.30.0000.00719.10
8.2.20.0000.00717.61
8.2.10.0040.00417.98
8.2.00.0040.00417.51
8.1.280.0140.00725.92
8.1.270.0030.00523.91
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0080.00023.98
8.1.230.0040.00717.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0050.00317.00
8.1.180.0000.00818.10
8.1.170.0030.00618.46
8.1.160.0000.00718.72
8.1.150.0000.00720.12
8.1.140.0040.00417.25
8.1.130.0030.00317.72
8.1.120.0040.00417.29
8.1.110.0040.00417.35
8.1.100.0070.00017.32
8.1.90.0070.00017.30
8.1.80.0050.00317.39
8.1.70.0050.00217.27
8.1.60.0040.00417.56
8.1.50.0050.00217.36
8.1.40.0040.00417.44
8.1.30.0050.00317.59
8.1.20.0080.00017.40
8.1.10.0000.00717.45
8.1.00.0040.00417.22
8.0.300.0030.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.37
8.0.270.0000.00717.12
8.0.260.0000.00617.10
8.0.250.0000.00716.91
8.0.240.0000.00616.87
8.0.230.0000.00716.90
8.0.220.0000.00716.70
8.0.210.0030.00316.90
8.0.200.0000.00616.87
8.0.190.0040.00416.83
8.0.180.0040.00416.86
8.0.170.0060.00316.84
8.0.160.0040.00416.78
8.0.150.0080.00016.66
8.0.140.0070.00016.70
8.0.130.0030.00313.34
8.0.120.0030.00516.76
8.0.110.0040.00416.76
8.0.100.0070.00016.82
8.0.90.0000.00716.93
8.0.80.0040.01816.83
8.0.70.0030.00516.81
8.0.60.0030.00316.78
8.0.50.0000.00716.75
8.0.30.0150.00416.90
8.0.20.0130.00917.40
8.0.10.0050.00316.92
8.0.00.0100.01016.80
7.4.330.0050.00015.02
7.4.320.0060.00016.44
7.4.300.0070.00016.36
7.4.290.0040.00416.42
7.4.280.0030.00616.50
7.4.270.0040.00416.44
7.4.260.0000.00716.41
7.4.250.0040.00416.25
7.4.240.0030.00316.38
7.4.230.0030.00316.43
7.4.220.0070.01016.50
7.4.210.0000.01416.55
7.4.200.0000.00716.50
7.4.160.0100.00716.38
7.4.150.0050.01417.40
7.4.140.0120.00617.86
7.4.130.0140.00316.47
7.4.120.0090.01216.46
7.4.110.0000.01716.50
7.4.100.0080.00816.39
7.4.90.0170.00016.43
7.4.80.0090.01219.39
7.4.70.0070.01016.34
7.4.60.0080.00816.54
7.4.50.0080.00016.39
7.4.40.0110.00616.12
7.4.30.0120.00316.35
7.4.00.0030.01214.86
7.3.330.0060.00012.97
7.3.320.0030.00312.94
7.3.310.0070.00015.99
7.3.300.0000.00716.13
7.3.290.0090.00916.04
7.3.280.0090.00716.16
7.3.270.0150.00317.40
7.3.260.0120.00916.50
7.3.250.0100.01016.40
7.3.240.0040.01316.35
7.3.230.0140.00716.39
7.3.210.0060.01116.33
7.3.200.0080.00819.39
7.3.190.0030.01316.13
7.3.180.0130.00316.06
7.3.170.0100.00716.29
7.3.160.0090.00616.33
7.3.120.0140.00414.86
7.2.330.0120.00916.27
7.2.320.0110.00816.43
7.2.310.0060.00916.13
7.2.300.0070.01016.51
7.2.290.0030.01216.55
7.2.00.0040.00718.93
7.1.100.0000.01117.75
7.1.70.0000.01016.96
7.1.60.0140.01019.70
7.1.50.0070.01716.95
7.1.00.0070.07322.28
7.0.200.0050.00316.55
7.0.140.0070.07022.08
7.0.60.0030.05719.92
7.0.50.0000.04317.87
7.0.40.0070.07320.21
7.0.30.0470.06320.08
7.0.20.0270.05020.00
7.0.10.0230.04020.17
7.0.00.0030.06320.12
5.6.280.0000.07720.77
5.6.210.0130.08020.50
5.6.200.0070.04018.13
5.6.190.0000.05020.43
5.6.180.0000.08720.56
5.6.170.0330.05320.37
5.6.160.0170.07320.51
5.6.150.0170.07318.20
5.6.140.0170.07718.16
5.6.130.0130.07318.20
5.6.120.0100.08321.12
5.6.110.0100.06021.12
5.6.100.0070.06321.00
5.6.90.0100.07320.98
5.6.80.0130.07020.34
5.6.70.0300.07320.49
5.5.350.0000.03720.40
5.5.340.0100.07717.99
5.5.330.0130.07720.43
5.5.320.0300.07720.31
5.5.310.0170.05320.20
5.5.300.0000.04317.91
5.5.290.0030.08717.89
5.5.280.0130.05020.84
5.5.270.0100.07720.63
5.5.260.0000.04320.86
5.5.250.0100.07720.57
5.5.240.0100.07720.18
5.4.450.0000.06319.51
5.4.440.0100.08019.50
5.4.430.0070.07719.44
5.4.420.0100.08019.42
5.4.410.0000.04719.34
5.4.400.0100.07719.14
5.4.390.0030.04718.92
5.4.380.0070.05718.79
5.4.370.0130.05719.18
5.4.360.0130.03718.96
5.4.350.0130.06319.14
5.4.340.0070.03718.91
5.4.320.0100.07319.18
5.4.310.0000.04319.00
5.4.300.0000.05018.91
5.4.290.0070.04719.14
5.4.280.0000.08019.15
5.4.270.0100.06019.15
5.4.260.0070.07718.78
5.4.250.0130.06718.87
5.4.240.0100.04019.08
5.4.230.0070.04319.11
5.4.220.0070.05018.78
5.4.210.0100.04019.15
5.4.200.0070.03719.05
5.4.190.0100.04719.07
5.4.180.0070.07319.16
5.4.170.0070.07319.17
5.4.160.0100.06718.76
5.4.150.0070.07319.16
5.4.140.0070.07716.29
5.4.130.0130.07016.47
5.4.120.0030.05016.45
5.4.110.0070.07016.39
5.4.100.0100.05716.37
5.4.90.0070.07016.27
5.4.80.0100.04016.28
5.4.70.0170.06316.59
5.4.60.0000.07016.33
5.4.50.0070.06716.58
5.4.40.0000.04716.27
5.4.30.0070.07716.27
5.4.20.0130.07016.24
5.4.10.0070.07016.31
5.4.00.0170.06315.93
5.3.290.0070.06714.48
5.3.280.0000.05014.47
5.3.270.0070.04014.53
5.3.260.0100.07714.50
5.3.250.0000.06014.69
5.3.240.0070.07714.54
5.3.230.0030.06314.52
5.3.220.0100.04014.35
5.3.210.0100.08014.50
5.3.200.0070.06714.52
5.3.190.0070.07314.58
5.3.180.0070.06314.51
5.3.170.0070.07014.51
5.3.160.0030.06314.65
5.3.150.0030.04714.48
5.3.140.0000.04714.34
5.3.130.0030.04014.36
5.3.120.0030.07314.42
5.3.110.0070.08014.35
5.3.100.0000.04313.97
5.3.90.0070.07713.96
5.3.80.0030.04313.94
5.3.70.0030.03713.83
5.3.60.0200.04713.83
5.3.50.0030.05014.03
5.3.40.0130.06714.04
5.3.30.0000.05013.84
5.3.20.0000.06313.61
5.3.10.0130.06713.59
5.3.00.0070.07313.55
5.2.170.0070.05711.07
5.2.160.0030.06010.96
5.2.150.0100.06011.13
5.2.140.0070.05711.22
5.2.130.0030.03711.11
5.2.120.0000.06011.03
5.2.110.0000.06010.98
5.2.100.0100.05711.04
5.2.90.0030.04711.04
5.2.80.0070.06010.95
5.2.70.0030.06311.05
5.2.60.0070.06011.03
5.2.50.0000.05710.83
5.2.40.0000.04010.98
5.2.30.0100.06010.79
5.2.20.0030.03710.93
5.2.10.0130.05310.88
5.2.00.0000.04310.74
5.1.60.0000.0339.98
5.1.50.0000.0379.83
5.1.40.0030.0579.93
5.1.30.0100.05310.33
5.1.20.0000.03010.35
5.1.10.0000.03310.03
5.1.00.0000.03310.05
5.0.50.0170.0338.55
5.0.40.0070.0438.45
5.0.30.0070.0678.28
5.0.20.0030.0278.26
5.0.10.0000.0408.26
5.0.00.0000.0678.26
4.4.90.0030.0378.26
4.4.80.0070.0308.26
4.4.70.0030.0208.26
4.4.60.0000.0278.26
4.4.50.0070.0338.26
4.4.40.0000.0578.26
4.4.30.0000.0278.26
4.4.20.0070.0278.26
4.4.10.0100.0108.26
4.4.00.0000.0278.26
4.3.110.0000.0238.26
4.3.100.0000.0238.26
4.3.90.0000.0238.26
4.3.80.0000.0538.26
4.3.70.0000.0338.26
4.3.60.0030.0338.26
4.3.50.0070.0308.26
4.3.40.0030.0508.26
4.3.30.0000.0378.26
4.3.20.0070.0338.26
4.3.10.0030.0378.26
4.3.00.0000.0338.26

preferences:
41.34 ms | 401 KiB | 5 Q