3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( '3' => 10, '2' => 2, '5' => 'Nakiya', ); /** * Implodes an array. * * @param array $array The array * @param string $with What to implode it with * * @return String */ function implodeArr($array, $with = '') { return implode($with, $array); } var_dump(implodeArr($array,','));

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.4.30.0120.00620.36
8.4.20.0200.00018.80
8.4.10.0170.00317.73
8.3.160.0120.00616.96
8.3.150.0040.01417.34
8.3.140.0050.00317.34
8.3.130.0050.00318.31
8.3.120.0030.00619.08
8.3.110.0140.00420.94
8.3.100.0050.00516.41
8.3.90.0040.00426.77
8.3.80.0000.00816.50
8.3.70.0110.00716.58
8.3.60.0150.00618.34
8.3.50.0050.00819.08
8.3.40.0090.00618.42
8.3.30.0070.01418.63
8.3.20.0040.00420.79
8.3.10.0050.00322.05
8.3.00.0080.00020.46
8.2.270.0130.00717.36
8.2.260.0040.00416.36
8.2.250.0080.00018.22
8.2.240.0040.00418.73
8.2.230.0040.00422.58
8.2.220.0030.00624.06
8.2.210.0120.00026.77
8.2.200.0090.00018.16
8.2.190.0070.01116.58
8.2.180.0170.00725.92
8.2.170.0100.00722.96
8.2.160.0030.01022.16
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00020.88
8.2.110.0030.00721.06
8.2.100.0070.00417.72
8.2.90.0030.00617.75
8.2.80.0030.00517.97
8.2.70.0050.00517.93
8.2.60.0040.00418.03
8.2.50.0000.00818.10
8.2.40.0000.00719.34
8.2.30.0040.00419.19
8.2.20.0030.00618.04
8.2.10.0000.00719.19
8.2.00.0000.00919.18
8.1.310.0070.01118.31
8.1.300.0030.00617.96
8.1.290.0060.00330.84
8.1.280.0070.01125.92
8.1.270.0040.00423.79
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00423.86
8.1.230.0040.00721.04
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0080.00017.10
8.1.180.0070.00718.10
8.1.170.0000.00820.79
8.1.160.0030.00319.08
8.1.150.0000.00718.83
8.1.140.0030.00320.36
8.1.130.0000.00720.06
8.1.120.0070.00017.32
8.1.110.0000.00917.39
8.1.100.0000.00817.41
8.1.90.0040.00417.25
8.1.80.0050.00217.44
8.1.70.0000.00817.43
8.1.60.0000.00817.56
8.1.50.0070.00017.47
8.1.40.0030.00517.41
8.1.30.0030.00517.48
8.1.20.0030.00517.48
8.1.10.0000.00717.51
8.1.00.0050.00317.39
8.0.300.0040.00419.88
8.0.290.0070.00316.63
8.0.280.0030.00318.43
8.0.270.0040.00416.72
8.0.260.0000.00720.01
8.0.250.0040.00416.80
8.0.240.0040.00716.96
8.0.230.0030.00316.79
8.0.220.0000.00716.83
8.0.210.0000.00716.87
8.0.200.0000.00616.86
8.0.190.0060.00316.85
8.0.180.0000.00816.79
8.0.170.0090.00016.75
8.0.160.0000.00716.86
8.0.150.0030.00316.78
8.0.140.0000.00716.67
8.0.130.0050.00013.33
8.0.120.0040.00416.69
8.0.110.0040.00316.81
8.0.100.0000.00716.84
8.0.90.0000.00816.86
8.0.80.0060.00916.78
8.0.70.0040.00416.88
8.0.60.0000.00716.64
8.0.50.0040.00416.76
8.0.30.0100.01017.09
8.0.20.0120.00717.15
8.0.10.0040.00416.79
8.0.00.0030.01416.95
7.4.330.0000.00415.55
7.4.320.0030.00316.35
7.4.300.0060.00016.65
7.4.290.0110.00016.56
7.4.280.0060.00316.45
7.4.270.0070.00016.50
7.4.260.0050.00013.27
7.4.250.0070.00016.61
7.4.240.0030.00316.50
7.4.230.0070.00016.50
7.4.220.0020.00516.47
7.4.210.0060.01316.61
7.4.200.0030.00316.49
7.4.130.0210.00316.41
7.4.120.0090.00916.37
7.4.110.0060.01216.56
7.4.100.0190.00816.48
7.4.90.0140.00316.56
7.4.80.0130.01019.39
7.4.70.0070.01316.47
7.4.60.0030.01316.58
7.4.50.0030.01016.30
7.4.40.0080.00916.41
7.4.10.0120.00614.89
7.4.00.0070.00914.80
7.3.330.0000.00616.30
7.3.320.0050.00013.24
7.3.310.0000.00716.05
7.3.300.0030.00316.10
7.3.290.0030.00316.24
7.3.280.0180.00016.21
7.3.260.0120.00716.29
7.3.240.0080.00816.38
7.3.230.0110.00416.44
7.3.210.0080.01216.22
7.3.200.0110.00716.40
7.3.190.0130.00316.34
7.3.180.0100.00916.60
7.3.170.0130.00716.58
7.3.160.0130.00616.60
7.3.130.0040.01214.55
7.3.120.0090.00914.74
7.3.110.0090.00914.66
7.3.100.0060.00814.73
7.3.90.0110.00514.84
7.3.80.0100.00614.71
7.3.70.0070.00614.72
7.3.60.0010.01214.72
7.3.50.0070.00714.74
7.3.40.0010.01014.61
7.3.30.0080.00614.77
7.3.20.0080.00715.75
7.3.10.0060.00815.68
7.3.00.0090.00415.69
7.2.330.0120.00416.65
7.2.320.0080.01116.23
7.2.310.0030.01316.23
7.2.300.0070.01016.15
7.2.290.0180.00416.29
7.2.260.0150.00014.55
7.2.250.0070.01014.90
7.2.240.0000.01415.09
7.2.230.0120.00314.77
7.2.220.0130.00514.73
7.2.210.0080.00614.86
7.2.200.0080.00514.86
7.2.190.0060.00814.75
7.2.180.0070.00714.82
7.2.170.0030.01014.85
7.2.160.0030.01014.85
7.2.150.0110.00815.97
7.2.140.0110.00615.90
7.2.130.0070.00615.80
7.2.120.0070.01115.89
7.2.110.0100.00615.64
7.2.100.0060.01315.79
7.2.90.0110.00715.85
7.2.80.0100.00615.77
7.2.70.0080.00615.88
7.2.60.0050.01415.81
7.2.50.0040.01315.84
7.2.40.0060.01215.79
7.2.30.0120.00515.92
7.2.20.0070.00715.83
7.2.10.0090.00515.73
7.2.00.0090.00715.77
7.1.330.0000.01315.62
7.1.320.0030.01114.87
7.1.310.0100.00814.89
7.1.300.0060.00814.71
7.1.290.0060.00814.82
7.1.280.0070.00814.92
7.1.270.0030.00914.75
7.1.260.0050.01314.90
7.1.250.0140.00314.88
7.1.240.0060.01315.56
7.1.230.0100.00715.45
7.1.220.0110.00415.74
7.1.210.0040.00415.58
7.1.200.0090.00615.70
7.1.190.0070.01015.74
7.1.180.0060.01015.72
7.1.170.0000.01515.73
7.1.160.0040.00715.67
7.1.150.0040.00815.83
7.1.140.0030.01215.73
7.1.130.0030.01015.80
7.1.120.0000.00815.79
7.1.110.0000.01215.51
7.1.100.0030.01315.63
7.1.90.0060.01015.57
7.1.80.0000.01115.75
7.1.70.0030.00715.63
7.1.60.0030.01215.77
7.1.50.0030.00915.91
7.1.40.0040.00815.66
7.1.30.0030.01015.73
7.1.20.0030.01015.76
7.1.10.0070.00715.90
7.1.00.0040.01215.83

preferences:
30.07 ms | 403 KiB | 5 Q