3v4l.org

run code in 300+ PHP versions simultaneously
<?php function array2array($src,&$target) { $arg_list = func_get_args(); unset($arg_list[0]); unset($arg_list[1]); foreach ($arg_list as $arg) { $target[$arg]=$src[$arg]; } } $a=['a'=>1,'b'=>2,'c'=>3,'d'=>4]; $b=['e'=>5]; array2array($a,$b,'b','c'); json_encode($b,JSON_UNESCAPED_UNICODE);

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.0030.01418.31
8.3.50.0130.00521.21
8.3.40.0110.00418.63
8.3.30.0110.00420.16
8.3.20.0070.00720.21
8.3.10.0000.00721.08
8.3.00.0080.00022.57
8.2.180.0040.01118.41
8.2.170.0030.01022.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00726.16
8.2.120.0040.00420.88
8.2.110.0060.00319.27
8.2.100.0090.00317.84
8.2.90.0050.00319.04
8.2.80.0040.00418.02
8.2.70.0000.00817.50
8.2.60.0080.00417.77
8.2.50.0050.00318.07
8.2.40.0080.00018.18
8.2.30.0000.00719.37
8.2.20.0000.00817.72
8.2.10.0000.00817.71
8.2.00.0040.00417.85
8.1.280.0130.00725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00722.64
8.1.230.0070.00421.10
8.1.220.0000.00818.77
8.1.210.0040.00420.87
8.1.200.0090.00317.35
8.1.190.0050.00317.27
8.1.180.0060.00318.10
8.1.170.0000.00718.64
8.1.160.0040.00418.89
8.1.150.0050.00318.55
8.1.140.0040.00417.50
8.1.130.0000.00717.79
8.1.120.0080.00017.43
8.1.110.0050.00217.47
8.1.100.0040.00317.46
8.1.90.0030.00317.35
8.1.80.0000.00717.37
8.1.70.0070.00017.35
8.1.60.0080.00017.62
8.1.50.0000.00717.44
8.1.40.0040.00417.52
8.1.30.0000.00817.64
8.1.20.0030.00517.66
8.1.10.0050.00317.48
8.1.00.0000.01017.38
8.0.300.0070.00019.85
8.0.290.0060.00317.04
8.0.280.0070.00018.35
8.0.270.0000.00717.26
8.0.260.0000.00816.76
8.0.250.0030.00316.97
8.0.240.0030.00516.93
8.0.230.0000.00816.86
8.0.220.0070.00016.80
8.0.210.0000.00816.95
8.0.200.0070.00016.95
8.0.190.0000.00816.96
8.0.180.0000.00716.91
8.0.170.0040.00416.92
8.0.160.0040.00416.88
8.0.150.0000.00716.79
8.0.140.0050.00316.84
8.0.130.0050.00013.31
8.0.120.0080.00016.86
8.0.110.0000.00716.92
8.0.100.0050.00316.76
8.0.90.0030.00316.76
8.0.80.0060.01316.84
8.0.70.0000.00716.77
8.0.60.0040.00416.77
8.0.50.0040.00416.92
8.0.30.0060.01417.08
8.0.20.0110.00817.40
8.0.10.0030.00516.89
8.0.00.0090.01016.73
7.4.330.0020.00414.99
7.4.320.0030.00316.52
7.4.300.0030.00316.60
7.4.290.0000.00716.50
7.4.280.0030.00316.39
7.4.270.0030.00316.54
7.4.260.0050.00013.34
7.4.250.0040.00416.54
7.4.240.0020.00616.51
7.4.230.0070.00016.71
7.4.220.0060.01216.61
7.4.210.0070.00816.51
7.4.200.0030.00316.30
7.4.190.0030.00316.41
7.4.160.0150.00016.67
7.4.150.0000.01717.40
7.4.140.0130.00717.86
7.4.130.0090.00916.57
7.4.120.0060.01016.42
7.4.110.0080.00816.48
7.4.100.0160.00616.50
7.4.90.0040.01416.60
7.4.80.0070.01019.39
7.4.70.0030.01216.59
7.4.60.0090.00616.42
7.4.50.0000.00916.36
7.4.40.0070.00722.77
7.4.30.0080.00816.47
7.4.00.0080.01014.94
7.3.330.0050.00013.18
7.3.320.0000.00513.36
7.3.310.0070.00016.46
7.3.300.0000.00716.40
7.3.290.0070.00716.33
7.3.280.0080.01016.36
7.3.270.0120.00617.40
7.3.260.0100.00918.24
7.3.250.0090.00916.43
7.3.240.0090.00616.40
7.3.230.0140.00316.39
7.3.210.0100.00716.52
7.3.200.0070.01619.39
7.3.190.0030.01616.33
7.3.180.0080.00816.47
7.3.170.0140.00716.62
7.3.160.0040.01216.55
7.3.120.0050.01014.69
7.3.110.0060.01014.85
7.3.100.0060.00614.73
7.3.90.0000.01314.75
7.3.80.0060.00914.76
7.3.70.0080.00414.86
7.3.60.0070.00314.57
7.3.50.0030.00614.77
7.3.40.0000.01314.69
7.3.30.0110.00414.85
7.3.20.0140.00316.79
7.3.10.0090.00016.80
7.3.00.0040.01116.63
7.2.330.0040.01516.72
7.2.320.0070.01016.64
7.2.310.0040.01316.71
7.2.300.0130.00316.86
7.2.290.0130.00316.50
7.2.250.0110.00715.21
7.2.240.0140.00415.27
7.2.230.0040.01115.06
7.2.220.0060.00615.00
7.2.210.0120.00415.23
7.2.200.0040.01214.69
7.2.190.0060.00614.84
7.2.180.0030.00915.06
7.2.170.0070.00714.95
7.2.130.0040.00716.79
7.2.120.0060.01216.65
7.2.110.0060.00616.98
7.2.100.0100.00716.52
7.2.90.0120.00316.90
7.2.80.0090.00616.66
7.2.70.0090.00017.06
7.2.60.0070.00716.69
7.2.50.0090.00617.16
7.2.40.0100.00316.80
7.2.30.0070.00416.94
7.2.20.0060.00316.98
7.2.10.0060.00617.04
7.2.00.0100.01016.71
7.1.330.0070.01016.08
7.1.320.0040.01115.78
7.1.310.0080.00416.01
7.1.300.0110.00415.84
7.1.290.0030.01015.77
7.1.280.0100.00315.93
7.1.270.0100.00315.91
7.1.260.0040.00716.03
7.1.250.0000.01315.83
7.1.240.0130.00315.71
7.1.230.0100.00715.50
7.1.220.0120.00615.44
7.1.210.0080.00815.60
7.1.200.0080.00415.95
7.1.190.0040.01115.95
7.1.180.0100.00315.77
7.1.170.0060.00615.69
7.1.160.0030.00715.44
7.1.150.0120.00615.79
7.1.140.0060.00615.93
7.1.130.0040.00415.85
7.1.120.0070.00715.75
7.1.110.0070.00315.79
7.1.100.0060.00615.67
7.1.90.0030.00815.57
7.1.80.0030.00715.82
7.1.70.0030.01016.33
7.1.60.0120.00717.47
7.1.50.0080.00616.24
7.1.40.0110.00415.42
7.1.30.0040.01115.88
7.1.20.0030.01215.75
7.1.10.0120.00815.78
7.1.00.0020.02718.96
7.0.330.0090.00915.59
7.0.320.0080.00615.30
7.0.310.0030.00915.53
7.0.300.0060.00915.23
7.0.290.0060.00615.43
7.0.280.0030.01015.30
7.0.270.0070.00715.41
7.0.260.0060.00915.30
7.0.250.0090.00615.57
7.0.240.0130.00315.55
7.0.230.0000.01215.33
7.0.220.0090.00915.39
7.0.210.0030.01015.31
7.0.200.0030.00916.21
7.0.190.0000.01415.16
7.0.180.0000.01315.18
7.0.170.0060.00915.29
7.0.160.0040.00715.52
7.0.150.0040.00415.26
7.0.140.0090.03418.75
7.0.130.0040.01115.56
7.0.120.0100.00315.34
7.0.110.0080.00815.34
7.0.100.0140.00415.24
7.0.90.0270.02917.75
7.0.80.0440.03817.62
7.0.70.0320.04717.60
7.0.60.0300.03417.66
7.0.50.0330.04617.97
7.0.40.0110.04716.70
7.0.30.0080.03816.80
7.0.20.0080.02716.86
7.0.10.0070.03916.81
7.0.00.0120.04016.76
5.6.380.0090.00614.50
5.6.370.0030.01014.04
5.6.360.0070.00414.20
5.6.350.0080.00614.53
5.6.340.0070.01014.26
5.6.330.0090.00614.24
5.6.320.0080.00314.29
5.6.310.0030.01014.39
5.6.300.0060.00914.30
5.6.290.0110.00513.71
5.6.280.0020.04217.55
5.6.270.0060.00314.39
5.6.260.0080.00614.46
5.6.250.0030.01214.33
5.6.240.0020.04417.41
5.6.230.0120.03817.57
5.6.220.0070.04017.42
5.6.210.0050.03017.60
5.6.200.0050.03017.74
5.6.190.0020.03217.67
5.6.180.0080.05117.63
5.6.170.0040.02917.65
5.6.160.0090.03517.66
5.6.150.0140.04217.73
5.6.140.0050.04317.65
5.6.130.0110.04817.73
5.6.120.0180.02517.80
5.6.110.0070.04017.68
5.6.100.0030.02817.56
5.6.90.0050.04217.70
5.6.80.0080.02617.37
5.6.70.0100.04517.16
5.6.60.0080.04217.18
5.6.50.0040.04417.32
5.6.40.0060.04217.33
5.6.30.0150.04017.27
5.6.20.0050.02817.30
5.6.10.0090.03917.26
5.6.00.0110.04317.33
5.5.380.0030.02415.94
5.5.370.0050.03015.84
5.5.360.0090.04115.98
5.5.350.0050.04415.92
5.5.340.0100.04016.05
5.5.330.0100.01816.15
5.5.320.0080.04216.09
5.5.310.0050.04815.92
5.5.300.0040.04416.01
5.5.290.0060.02415.90
5.5.280.0030.04416.14
5.5.270.0020.04116.09
5.5.260.0020.02515.93
5.5.250.0120.04215.80
5.5.240.0090.02615.63
5.5.230.0070.04115.68
5.5.220.0050.04315.78
5.5.210.0070.03815.65
5.5.200.0130.03515.51
5.5.190.0100.03015.66
5.5.180.0030.04515.73
5.5.170.0080.00411.33
5.5.160.0080.04215.69
5.5.150.0060.04315.67
5.5.140.0100.03515.53
5.5.130.0120.03315.81
5.5.120.0050.02115.65
5.5.110.0040.03015.65
5.5.100.0030.03415.56
5.5.90.0080.02815.50
5.5.80.0050.02515.58
5.5.70.0030.02315.51
5.5.60.0110.03515.35
5.5.50.0140.03515.64
5.5.40.0090.03815.46
5.5.30.0090.03515.58
5.5.20.0020.04415.71
5.5.10.0060.04015.57
5.5.00.0070.04415.55
5.4.450.0090.02015.16
5.4.440.0030.04215.10
5.4.430.0050.02715.25
5.4.420.0080.01815.20
5.4.410.0060.03815.21
5.4.400.0070.04014.88
5.4.390.0020.04315.06
5.4.380.0080.04515.17
5.4.370.0050.04515.14
5.4.360.0070.02415.04
5.4.350.0140.03515.13
5.4.340.0110.01815.05
5.4.330.0120.00310.75
5.4.320.0080.02015.26
5.4.310.0070.02515.16
5.4.300.0020.04015.24
5.4.290.0050.02414.94
5.4.280.0050.02515.08
5.4.270.0110.04015.12
5.4.260.0080.03815.01
5.4.250.0040.04615.00
5.4.240.0100.04314.80
5.4.230.0030.02814.78
5.4.220.0130.03515.04
5.4.210.0040.04014.72
5.4.200.0050.04015.10
5.4.190.0070.02415.06
5.4.180.0050.03815.15
5.4.170.0040.04414.87
5.4.160.0120.03514.97
5.4.150.0040.04615.03
5.4.140.0080.03713.58
5.4.130.0090.02213.76
5.4.120.0060.02613.71
5.4.110.0050.02213.78
5.4.100.0090.03213.89
5.4.90.0110.03613.82
5.4.80.0090.02113.68
5.4.70.0100.04213.88
5.4.60.0010.02813.67
5.4.50.0080.02313.72
5.4.40.0090.03213.97
5.4.30.0140.03413.63
5.4.20.0100.04013.80
5.4.10.0120.04013.73
5.4.00.0080.03213.46
5.3.290.0070.03412.50
5.3.280.0000.03712.47
5.3.270.0080.04212.49
5.3.260.0080.04112.44
5.3.250.0110.03412.44
5.3.240.0020.03812.47
5.3.230.0080.04212.42
5.3.220.0140.03412.47
5.3.210.0070.04212.47
5.3.200.0080.03512.44
5.3.190.0110.02512.41
5.3.180.0050.02312.45
5.3.170.0070.03012.58
5.3.160.0190.03712.61
5.3.150.0190.02812.51
5.3.140.0180.02812.45
5.3.130.0180.03912.43
5.3.120.0220.02112.39
5.3.110.0220.03712.41
5.3.100.0160.03412.19
5.3.90.0180.02212.22
5.3.80.0150.03512.16
5.3.70.0180.03512.10
5.3.60.0150.02312.18
5.3.50.0180.03812.10
5.3.40.0300.02512.05
5.3.30.0130.04012.06
5.3.20.0190.02812.03
5.3.10.0090.04211.97
5.3.00.0080.03411.93
5.2.170.0120.04010.70
5.2.160.0170.03110.64
5.2.150.0170.03310.70
5.2.140.0180.02210.75
5.2.130.0110.02710.69
5.2.120.0170.01810.63
5.2.110.0270.03210.61
5.2.100.0190.03010.70
5.2.90.0090.03110.63
5.2.80.0080.01610.68
5.2.70.0050.03310.59
5.2.60.0080.03010.62
5.2.50.0050.01710.63
5.2.40.0070.01410.57
5.2.30.0080.03210.65
5.2.20.0050.03210.66
5.2.10.0090.02910.50
5.2.00.0070.02510.54
5.1.60.0040.03210.16
5.1.50.0060.02810.14
5.1.40.0030.02510.10
5.1.30.0130.03010.24
5.1.20.0100.02810.28
5.1.10.0080.03210.07
5.1.00.0040.02210.11
5.0.50.0080.0229.31
5.0.40.0030.0269.37
5.0.30.0020.0179.14
5.0.20.0070.0199.13
5.0.10.0030.0149.26
5.0.00.0060.0329.19
4.4.90.0020.0228.88
4.4.80.0030.0138.88
4.4.70.0030.0188.88
4.4.60.0010.0188.88
4.4.50.0000.0178.88
4.4.40.0000.0308.88
4.4.30.0040.0148.88
4.4.20.0050.0128.88
4.4.10.0100.0178.88
4.4.00.0040.0218.88
4.3.110.0020.0138.88
4.3.100.0020.0188.88
4.3.90.0030.0208.88
4.3.80.0030.0288.88
4.3.70.0030.0188.88
4.3.60.0050.0178.88
4.3.50.0000.0218.88
4.3.40.0000.0318.88
4.3.30.0000.0218.88
4.3.20.0010.0198.88
4.3.10.0000.0218.88
4.3.00.0020.0188.88

preferences:
56.88 ms | 401 KiB | 5 Q