3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convertAssociativeArrayToValue(array $data){$result=[];foreach($data as $key=>$value){$result[]="{$key}:{$value}";}} $parameters=['a'=>2,'b'=>3,'c'=>1]; echo "|parameters:[".implode(",'",convertAssociativeArrayToValue($parameters))."]";

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.0140.00418.55
8.3.50.0080.01421.32
8.3.40.0120.00318.79
8.3.30.0150.00419.18
8.3.20.0040.00420.07
8.3.10.0000.00820.52
8.3.00.0060.00319.51
8.2.180.0150.00416.63
8.2.170.0150.00022.96
8.2.160.0130.00720.32
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00022.11
8.2.110.0070.00322.17
8.2.100.0080.00417.91
8.2.90.0050.00319.35
8.2.80.0000.00817.97
8.2.70.0030.00617.62
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00318.28
8.2.30.0000.00819.20
8.2.20.0050.00217.79
8.2.10.0040.00418.00
8.2.00.0040.00417.68
8.1.280.0180.00325.92
8.1.270.0030.00523.65
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00620.67
8.1.230.0070.00419.04
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0060.00318.54
8.1.160.0030.00522.00
8.1.150.0000.00818.98
8.1.140.0040.00417.43
8.1.130.0000.00717.77
8.1.120.0030.00417.50
8.1.110.0000.00717.46
8.1.100.0000.00717.37
8.1.90.0000.00717.47
8.1.80.0000.00717.34
8.1.70.0000.00717.41
8.1.60.0040.00417.57
8.1.50.0050.00317.55
8.1.40.0000.00717.49
8.1.30.0080.00017.58
8.1.20.0060.00317.63
8.1.10.0050.00517.49
8.1.00.0000.00717.41
8.0.300.0080.00018.77
8.0.290.0000.00816.88
8.0.280.0040.00418.45
8.0.270.0030.00317.13
8.0.260.0030.00317.20
8.0.250.0040.00416.91
8.0.240.0000.00916.88
8.0.230.0000.00616.99
8.0.220.0080.00016.86
8.0.210.0030.00316.86
8.0.200.0060.00017.05
8.0.190.0000.00716.99
8.0.180.0000.00716.96
8.0.170.0030.00516.91
8.0.160.0030.00316.91
8.0.150.0070.00016.97
8.0.140.0040.00416.92
8.0.130.0030.00313.38
8.0.120.0040.00416.82
8.0.110.0020.00517.02
8.0.100.0040.00416.95
8.0.90.0040.00416.93
8.0.80.0090.00616.91
8.0.70.0040.00416.99
8.0.60.0000.00816.85
8.0.50.0040.00416.88
8.0.30.0110.01117.21
8.0.20.0140.00617.40
8.0.10.0080.00017.11
8.0.00.0120.00516.74
7.4.330.0000.00515.08
7.4.320.0050.00216.48
7.4.300.0030.00316.48
7.4.290.0040.00416.59
7.4.280.0070.00016.45
7.4.270.0030.00316.50
7.4.260.0060.00016.47
7.4.250.0040.00416.53
7.4.240.0020.00516.55
7.4.230.0030.00316.38
7.4.220.0090.01216.44
7.4.210.0030.01216.68
7.4.200.0050.00216.40
7.4.160.0100.00616.65
7.4.150.0090.01017.40
7.4.140.0120.00617.86
7.4.130.0100.01016.61
7.4.120.0110.00616.58
7.4.110.0030.01316.45
7.4.100.0130.00316.46
7.4.90.0100.00716.69
7.4.80.0060.01019.37
7.4.70.0100.00616.46
7.4.60.0050.00816.54
7.4.50.0030.00516.54
7.4.40.0140.00316.59
7.4.30.0040.01116.57
7.4.00.0030.01015.25
7.3.330.0030.00313.48
7.3.320.0000.00513.45
7.3.310.0000.00716.42
7.3.300.0070.00016.29
7.3.290.0120.00616.36
7.3.280.0080.01016.45
7.3.270.0030.01317.40
7.3.260.0130.01016.64
7.3.250.0100.00916.50
7.3.240.0090.00916.34
7.3.230.0100.00716.52
7.3.210.0130.01016.43
7.3.200.0090.01216.41
7.3.190.0170.00016.44
7.3.180.0130.00316.38
7.3.170.0100.00616.68
7.3.160.0120.00916.50
7.3.120.0130.00314.85
7.3.110.0060.00614.74
7.3.100.0150.00014.61
7.3.90.0110.00014.88
7.3.80.0070.00714.71
7.3.70.0030.01014.50
7.3.60.0060.00614.77
7.3.50.0060.00614.89
7.3.40.0060.00614.83
7.3.30.0070.00714.61
7.3.20.0000.01216.39
7.3.10.0060.00916.63
7.3.00.0040.01016.70
7.2.330.0000.01616.64
7.2.320.0100.00716.63
7.2.310.0030.01316.47
7.2.300.0030.01416.72
7.2.290.0060.01516.37
7.2.240.0040.01115.16
7.2.230.0040.00814.93
7.2.220.0060.00614.79
7.2.210.0000.01814.89
7.2.200.0060.00914.92
7.2.190.0000.01514.88
7.2.180.0120.00315.00
7.2.170.0090.00614.74
7.2.160.0100.00314.85
7.2.150.0030.00616.90
7.2.140.0030.00916.92
7.2.130.0000.01116.88
7.2.120.0030.01016.89
7.2.110.0060.00917.02
7.2.100.0060.00916.75
7.2.90.0030.01016.94
7.2.80.0000.01216.50
7.2.70.0040.00817.00
7.2.60.0030.01216.90
7.2.50.0030.00616.97
7.2.40.0000.01516.91
7.2.30.0150.00017.04
7.2.20.0070.01016.90
7.2.10.0070.00717.06
7.2.00.0070.00818.32
7.1.330.0040.00815.63
7.1.320.0030.00615.73
7.1.310.0030.00915.68
7.1.300.0110.00415.85
7.1.290.0080.00315.97
7.1.280.0000.01515.81
7.1.270.0000.01415.84
7.1.260.0040.00715.74
7.1.250.0120.00415.56
7.1.100.0030.00918.05
7.1.70.0190.00816.99
7.1.60.0120.01219.32
7.1.50.0090.00616.60
7.1.00.0000.07722.45
7.0.200.0080.00316.56
7.0.140.0000.07721.95
7.0.60.0100.07719.95
7.0.50.0070.08017.89
7.0.40.0000.04720.18
7.0.30.0330.05320.23
7.0.20.0270.04320.26
7.0.10.0070.07720.24
7.0.00.0070.09020.11
5.6.280.0000.07321.07
5.6.210.0000.04320.73
5.6.200.0130.07018.22
5.6.190.0030.06020.48
5.6.180.0430.05020.55
5.6.170.0230.06020.71
5.6.160.0000.07320.39
5.6.150.0070.08018.25
5.6.140.0100.07318.18
5.6.130.0100.07318.17
5.6.120.0170.07020.85
5.6.110.0030.08321.12
5.6.100.0100.08021.02
5.6.90.0070.08721.03
5.6.80.0100.07720.41
5.5.350.0170.08020.50
5.5.340.0130.07318.04
5.5.330.0070.04720.28
5.5.320.0430.07020.35
5.5.310.0300.07320.32
5.5.300.0030.08017.98
5.5.290.0100.06718.06
5.5.280.0100.08020.90
5.5.270.0030.05320.95
5.5.260.0130.07720.87
5.5.250.0100.05020.58
5.5.240.0200.06720.19
5.4.450.1130.05019.21
5.4.440.0930.04719.32
5.4.430.1030.04719.58
5.4.420.0630.00019.70
5.4.410.0630.00019.23
5.4.400.0630.00019.21
5.4.390.0670.00019.08
5.4.380.0230.05718.74
5.4.370.0230.05718.57
5.4.360.0230.05318.73
5.4.350.0400.05018.77
5.4.340.0130.05318.75
5.4.320.0060.03612.51
5.4.310.0050.03812.50
5.4.300.0050.03712.50
5.4.290.0070.03612.50
5.4.280.0020.03912.40
5.4.270.0050.03612.40
5.4.260.0070.04212.40
5.4.250.0030.03912.40
5.4.240.0070.03312.40
5.4.230.0040.04212.39
5.4.220.0090.04512.39
5.4.210.0020.03912.39
5.4.200.0050.03812.39
5.4.190.0050.03612.39
5.4.180.0050.03612.39
5.4.170.0040.03712.39
5.4.160.0070.03312.39
5.4.150.0060.03612.39
5.4.140.0050.03712.07
5.4.130.0050.04412.06
5.4.120.0060.03512.02
5.4.110.0060.03612.01
5.4.100.0080.03212.01
5.4.90.0040.04112.01
5.4.80.0070.03512.01
5.4.70.0050.03512.00
5.4.60.0060.03312.01
5.4.50.0060.03412.01
5.4.40.0050.03412.00
5.4.30.0050.03811.99
5.4.20.0060.03512.00
5.4.10.0050.03611.99
5.4.00.0070.03411.48
5.3.290.0020.04312.80
5.3.280.0010.04212.71
5.3.270.0060.03712.72
5.3.260.0060.04112.72
5.3.250.0060.04012.72
5.3.240.0060.03712.72
5.3.230.0060.03912.71
5.3.220.0080.03512.68
5.3.210.0100.03512.68
5.3.200.0050.03712.68
5.3.190.0070.03712.68
5.3.180.0090.03312.67
5.3.170.0060.03712.67
5.3.160.0040.03712.68
5.3.150.0040.03912.67
5.3.140.0060.03612.66
5.3.130.0070.03712.66
5.3.120.0050.04012.66
5.3.110.0070.03812.66
5.3.100.0030.03912.13
5.3.90.0040.03912.11
5.3.80.0030.03912.09
5.3.70.0060.04112.09
5.3.60.0050.03812.08
5.3.50.0050.03612.02
5.3.40.0050.03612.02
5.3.30.0080.03211.98
5.3.20.0050.03611.77
5.3.10.0060.03411.74
5.3.00.0040.04411.71
5.2.170.0050.0309.21
5.2.160.0040.0299.21
5.2.150.0050.0329.22
5.2.140.0060.0299.21
5.2.130.0060.0269.18
5.2.120.0020.0309.17
5.2.110.0060.0279.18
5.2.100.0050.0289.18
5.2.90.0060.0379.18
5.2.80.0040.0319.17
5.2.70.0080.0299.17
5.2.60.0040.0309.13
5.2.50.0000.0349.09
5.2.40.0050.0279.07
5.2.30.0030.0309.05
5.2.20.0020.0319.05
5.2.10.0030.0298.95
5.2.00.0020.0318.81
5.1.60.0010.0308.09
5.1.50.0070.0218.08
5.1.40.0040.0248.07
5.1.30.0020.0318.43
5.1.20.0020.0288.44
5.1.10.0030.0278.16
5.1.00.0040.0258.16
5.0.50.0060.0206.64
5.0.40.0010.0216.50
5.0.30.0040.0306.31
5.0.20.0010.0216.29
5.0.10.0040.0196.25
5.0.00.0030.0306.25
4.4.90.0030.0144.78
4.4.80.0030.0144.76
4.4.70.0010.0164.76
4.4.60.0030.0154.75
4.4.50.0040.0144.77
4.4.40.0050.0244.70
4.4.30.0040.0144.76
4.4.20.0040.0144.85
4.4.10.0000.0184.85
4.4.00.0040.0244.76
4.3.110.0050.0134.67
4.3.100.0030.0144.67
4.3.90.0030.0144.64
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0010.0164.62
4.3.50.0030.0154.62
4.3.40.0010.0254.54
4.3.30.0010.0173.30
4.3.20.0030.0173.29
4.3.10.0000.0173.24
4.3.00.0100.01314.30

preferences:
46.07 ms | 401 KiB | 5 Q