3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = array('item1' => 'object1', 'item2' => 'object2', 'item-n' => 'object-n'); $output = implode(', ', array_map(function ($v, $k) { return $k . '=' . $v; }, $input, array_keys($input))); print_r($input, true);

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.40.0100.01018.63
8.3.30.0110.00319.15
8.3.20.0000.00820.34
8.3.10.0000.00823.55
8.3.00.0070.00317.50
8.2.170.0090.01222.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0110.00324.66
8.2.130.0030.00526.16
8.2.120.0090.00622.16
8.2.110.0060.00321.11
8.2.100.0080.00417.84
8.2.90.0000.00919.05
8.2.80.0030.00617.97
8.2.70.0040.00417.48
8.2.60.0030.00517.77
8.2.50.0040.00418.10
8.2.40.0000.00819.95
8.2.30.0030.00618.16
8.2.20.0040.00417.74
8.2.10.0040.00418.12
8.2.00.0040.00417.87
8.1.270.0030.00523.84
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0000.01023.96
8.1.230.0120.00017.82
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0000.01118.65
8.1.160.0040.00422.07
8.1.150.0000.00718.83
8.1.140.0000.00817.53
8.1.130.0000.00717.88
8.1.120.0040.00417.48
8.1.110.0030.00517.38
8.1.100.0030.00317.44
8.1.90.0000.00717.39
8.1.80.0080.00017.47
8.1.70.0030.00317.43
8.1.60.0070.00017.57
8.1.50.0040.00417.54
8.1.40.0030.00617.51
8.1.30.0040.00417.59
8.1.20.0030.00517.64
8.1.10.0040.00417.60
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0030.00318.44
8.0.270.0040.00417.29
8.0.260.0070.00017.25
8.0.250.0030.00316.96
8.0.240.0070.00016.85
8.0.230.0000.00716.98
8.0.220.0060.00016.78
8.0.210.0030.00316.79
8.0.200.0030.00616.84
8.0.190.0030.00317.01
8.0.180.0030.00316.82
8.0.170.0030.00516.82
8.0.160.0070.00016.88
8.0.150.0070.00016.82
8.0.140.0060.00316.87
8.0.130.0050.00013.30
8.0.120.0080.00016.86
8.0.110.0070.00016.73
8.0.100.0080.00016.77
8.0.90.0000.00916.78
8.0.80.0030.01316.86
8.0.70.0040.00416.86
8.0.60.0000.00916.76
8.0.50.0040.00416.89
8.0.30.0080.01517.02
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0090.01116.78
7.4.330.0050.00015.09
7.4.320.0030.00316.57
7.4.300.0000.00616.50
7.4.290.0030.00316.55
7.4.280.0040.00416.58
7.4.270.0070.00016.41
7.4.260.0090.00016.39
7.4.250.0080.00016.47
7.4.240.0040.00416.51
7.4.230.0000.00716.43
7.4.220.0060.01316.66
7.4.210.0030.01016.49
7.4.200.0040.00416.54
7.4.160.0040.01416.57
7.4.150.0190.00017.40
7.4.140.0070.01317.86
7.4.130.0100.00616.35
7.4.120.0070.01016.46
7.4.110.0140.00316.29
7.4.100.0160.00616.34
7.4.90.0130.00716.69
7.4.80.0140.00819.39
7.4.70.0100.00716.43
7.4.60.0100.00616.59
7.4.50.0080.00016.25
7.4.40.0090.01416.46
7.4.30.0130.00316.43
7.4.10.0040.01415.21
7.4.00.0090.00914.95
7.3.330.0000.00613.37
7.3.320.0000.00513.37
7.3.310.0040.00416.15
7.3.300.0050.00216.18
7.3.290.0000.01316.36
7.3.280.0140.00516.24
7.3.270.0110.00717.40
7.3.260.0080.00816.52
7.3.250.0140.00516.54
7.3.240.0130.00916.40
7.3.230.0130.00316.47
7.3.210.0070.01416.61
7.3.200.0030.01619.39
7.3.190.0070.01416.29
7.3.180.0060.00916.55
7.3.170.0100.00716.40
7.3.160.0100.00616.29
7.3.130.0090.00614.87
7.3.120.0080.00814.83
7.3.110.0060.00814.67
7.3.100.0070.01014.67
7.3.90.0040.00914.60
7.3.80.0030.00714.80
7.3.70.0040.00714.56
7.3.60.0090.00614.75
7.3.50.0030.00914.69
7.3.40.0040.00514.82
7.3.30.0050.00714.77
7.3.20.0060.00516.73
7.3.10.0100.00616.78
7.3.00.0080.00616.40
7.2.330.0090.01516.57
7.2.320.0080.00916.71
7.2.310.0110.00716.60
7.2.300.0000.01716.57
7.2.290.0070.01116.77
7.2.260.0000.01814.98
7.2.250.0070.01015.06
7.2.240.0090.00515.01
7.2.230.0060.00915.13
7.2.220.0070.00715.17
7.2.210.0070.00914.94
7.2.200.0070.00714.88
7.2.190.0070.00314.96
7.2.180.0080.00615.05
7.2.170.0030.00715.00
7.2.160.0070.01014.97
7.2.150.0030.01316.89
7.2.140.0070.01016.89
7.2.130.0120.00416.62
7.2.120.0070.00716.79
7.2.110.0030.01016.69
7.2.100.0050.00516.76
7.2.90.0060.00316.73
7.2.80.0080.00416.73
7.2.70.0070.01016.65
7.2.60.0070.00616.83
7.2.50.0030.00816.92
7.2.40.0060.01216.94
7.2.30.0040.01117.04
7.2.20.0060.00616.96
7.2.10.0060.00916.91
7.2.00.0040.01116.61
7.1.330.0060.01015.83
7.1.320.0040.00815.65
7.1.310.0060.00816.01
7.1.300.0060.00715.77
7.1.290.0090.00515.66
7.1.280.0030.00815.60
7.1.270.0100.00615.57
7.1.260.0030.00815.57
7.1.250.0060.01015.84
7.1.240.0060.00315.71
7.1.230.0070.00715.46
7.1.220.0070.00315.89
7.1.210.0000.01215.39
7.1.200.0050.00715.60
7.1.190.0070.00715.84
7.1.180.0040.00815.91
7.1.170.0070.00715.88
7.1.160.0060.00615.63
7.1.150.0060.00915.94
7.1.140.0090.00615.91
7.1.130.0000.01615.88
7.1.120.0060.00615.74
7.1.110.0030.00915.61
7.1.100.0040.00415.48
7.1.90.0000.01615.62
7.1.80.0000.00915.88
7.1.70.0060.00616.55
7.1.60.0080.01117.63
7.1.50.0070.01116.29
7.1.40.0100.00315.73
7.1.30.0070.00715.77
7.1.20.0030.01015.63
7.1.10.0030.00915.69
7.1.00.0050.04018.90
7.0.330.0060.00315.48
7.0.320.0040.00715.15
7.0.310.0070.00715.18
7.0.300.0030.00515.48
7.0.290.0100.00715.45
7.0.280.0030.00715.11
7.0.270.0060.00915.53
7.0.260.0040.00415.43
7.0.250.0040.01115.13
7.0.240.0060.00315.43
7.0.230.0030.00715.53
7.0.220.0060.00615.58
7.0.210.0120.00315.47
7.0.200.0060.00616.10
7.0.190.0030.00515.48
7.0.180.0040.00415.32
7.0.170.0040.00415.39
7.0.160.0070.01015.29
7.0.150.0060.00615.61
7.0.140.0040.03718.74
7.0.130.0000.00915.29
7.0.120.0040.00815.28
7.0.110.0030.01015.29
7.0.100.0060.00615.29
7.0.90.0000.00815.52
7.0.80.0100.00315.29
7.0.70.0000.01215.48
7.0.60.0050.04317.81
7.0.50.0020.03116.61
7.0.40.0050.04716.65
7.0.30.0280.03716.91
7.0.20.0160.04116.78
7.0.10.0030.03716.78
7.0.00.0030.03016.71
5.6.400.0070.00314.61
5.6.390.0060.00613.84
5.6.380.0030.01014.18
5.6.370.0090.00614.43
5.6.360.0000.01214.66
5.6.350.0030.00914.63
5.6.340.0000.01314.25
5.6.330.0040.01114.34
5.6.320.0060.00614.41
5.6.310.0080.00814.39
5.6.300.0030.00914.47
5.6.290.0000.01414.47
5.6.280.0060.03817.60
5.6.270.0070.01014.48
5.6.260.0060.00314.12
5.6.250.0070.00314.35
5.6.240.0060.01214.32
5.6.230.0000.01514.27
5.6.220.0070.00714.28
5.6.210.0070.03717.26
5.6.200.0090.02216.24
5.6.190.0070.03017.39
5.6.180.0230.04317.34
5.6.170.0180.02817.50
5.6.160.0030.03017.29
5.6.150.0080.02516.27
5.6.140.0050.02516.23
5.6.130.0090.04616.27
5.6.120.0070.03117.52
5.6.110.0060.04517.66
5.6.100.0050.04417.54
5.6.90.0030.04817.60
5.6.80.0110.03617.32
5.6.70.0000.01313.99
5.6.60.0030.01014.18
5.6.50.0090.00614.14
5.6.40.0030.01014.27
5.6.30.0030.01014.26
5.6.20.0030.00714.18
5.6.10.0070.00414.15
5.6.00.0000.01014.48
5.5.380.0000.01413.96
5.5.370.0090.00914.13
5.5.360.0120.00314.28
5.5.350.0050.04317.38
5.5.340.0070.04316.12
5.5.330.0050.04217.27
5.5.320.0270.03317.06
5.5.310.0130.02817.13
5.5.300.0030.03816.17
5.5.290.0020.03116.02
5.5.280.0030.03017.58
5.5.270.0140.03517.55
5.5.260.0050.04617.49
5.5.250.0130.03817.33
5.5.240.0150.04017.08
5.5.230.0040.00814.24
5.5.220.0100.00314.18
5.5.210.0070.00714.09
5.5.200.0040.00814.10
5.5.190.0070.00714.32
5.5.180.0040.01213.71
5.5.170.0030.00614.01
5.5.160.0060.00314.20
5.5.150.0050.00313.95
5.5.140.0030.01314.17
5.5.130.0030.00913.88
5.5.120.0060.00913.83
5.5.110.0030.00614.05
5.5.100.0030.01014.10
5.5.90.0030.00914.21
5.5.80.0000.01014.22
5.5.70.0030.01214.01
5.5.60.0100.00614.21
5.5.50.0130.00313.85
5.5.40.0080.00314.30
5.5.30.0040.00414.30
5.5.20.0030.01314.21
5.5.10.0120.00313.90
5.5.00.0060.00614.02
5.4.450.0230.02015.19
5.4.440.0070.02515.28
5.4.430.0350.01915.21
5.4.420.0350.00415.24
5.4.410.0330.00315.31
5.4.400.0320.00415.13
5.4.390.0320.00215.12
5.4.380.0430.00415.13
5.4.370.0300.00415.06
5.4.360.0380.00015.18
5.4.350.0350.00415.04
5.4.340.0070.01911.56
5.4.330.0040.00411.10
5.4.320.0040.02011.80
5.4.310.0050.02011.80
5.4.300.0040.02011.80
5.4.290.0020.02411.80
5.4.280.0080.01611.75
5.4.270.0040.02311.75
5.4.260.0090.02211.75
5.4.250.0040.02711.75
5.4.240.0040.02611.75
5.4.230.0060.02811.75
5.4.220.0070.01911.74
5.4.210.0040.02211.74
5.4.200.0070.02011.75
5.4.190.0040.02111.74
5.4.180.0040.01911.74
5.4.170.0040.02311.78
5.4.160.0020.02111.74
5.4.150.0060.02111.74
5.4.140.0080.01911.59
5.4.130.0050.02011.58
5.4.120.0070.02011.56
5.4.110.0040.02211.56
5.4.100.0060.01811.55
5.4.90.0030.02411.56
5.4.80.0030.02811.56
5.4.70.0040.02311.56
5.4.60.0050.01911.56
5.4.50.0070.02511.55
5.4.40.0040.02511.55
5.4.30.0060.02111.55
5.4.20.0050.01911.55
5.4.10.0070.01811.55
5.4.00.0040.02011.29
5.3.290.0050.03912.80
5.3.280.0040.03912.71
5.3.270.0060.03812.72
5.3.260.0040.04012.71
5.3.250.0050.03712.71
5.3.240.0060.03712.72
5.3.230.0060.03612.70
5.3.220.0030.03812.68
5.3.210.0060.03912.68
5.3.200.0060.03512.68
5.3.190.0090.03912.68
5.3.180.0090.03412.67
5.3.170.0040.03912.67
5.3.160.0080.03412.68
5.3.150.0080.03412.67
5.3.140.0050.03712.66
5.3.130.0070.03712.66
5.3.120.0060.03812.66
5.3.110.0070.03712.66
5.3.100.0070.03512.12
5.3.90.0060.03512.10
5.3.80.0040.03812.10
5.3.70.0060.03612.10
5.3.60.0070.04112.07
5.3.50.0070.03512.03
5.3.40.0060.03612.03
5.3.30.0050.03611.98
5.3.20.0070.03411.76
5.3.10.0060.03411.73
5.3.00.0060.03511.72
5.2.170.0060.0329.18
5.2.160.0070.0329.18
5.2.150.0070.0279.18
5.2.140.0080.0299.18
5.2.130.0060.0279.14
5.2.120.0050.0279.14
5.2.110.0010.0339.14
5.2.100.0050.0289.14
5.2.90.0030.0309.14
5.2.80.0030.0319.14
5.2.70.0070.0359.14
5.2.60.0060.0329.09
5.2.50.0080.0289.06
5.2.40.0040.0299.04
5.2.30.0030.0339.01
5.2.20.0070.0279.00
5.2.10.0030.0308.92
5.2.00.0060.0288.78
5.1.60.0050.0278.07
5.1.50.0030.0268.06
5.1.40.0030.0258.04
5.1.30.0010.0298.40
5.1.20.0050.0248.41
5.1.10.0050.0248.14
5.1.00.0040.0258.14
5.0.50.0040.0196.62
5.0.40.0020.0246.48
5.0.30.0050.0306.29
5.0.20.0040.0186.26
5.0.10.0010.0216.24
5.0.00.0030.0316.23
4.4.90.0020.0154.78
4.4.80.0020.0184.76
4.4.70.0030.0184.75
4.4.60.0030.0164.75
4.4.50.0030.0164.77
4.4.40.0030.0254.71
4.4.30.0020.0164.75
4.4.20.0030.0144.84
4.4.10.0020.0174.85
4.4.00.0030.0244.75
4.3.110.0030.0164.67
4.3.100.0060.0154.66
4.3.90.0040.0164.64
4.3.80.0010.0264.59
4.3.70.0030.0134.63
4.3.60.0000.0164.63
4.3.50.0040.0134.63
4.3.40.0010.0264.54
4.3.30.0030.0153.28
4.3.20.0050.0163.27
4.3.10.0010.0163.23
4.3.00.0070.01710.58

preferences:
47.51 ms | 400 KiB | 5 Q