3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 =[ ["id"=> "1", "uid"=>'123', "status"=>'0'], ["id"=> "2", "uid"=>'321', "status"=>'1'] ]; $array2 =[ ["uid"=> "123", "name"=>'张三'], ["uid"=> "321", "name"=>'李四'] ]; $array2 = array_column($array2, 'name', 'uid'); foreach($array1 as &$arr) $arr['uid'] = $array2[$arr['uid']]; var_dump($array1);

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.0070.01016.38
8.3.50.0110.00718.04
8.3.40.0120.00318.53
8.3.30.0140.00019.04
8.3.20.0040.00420.21
8.3.10.0040.00421.73
8.3.00.0040.00420.77
8.2.180.0140.00318.29
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0040.01124.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.01019.78
8.2.110.0090.00319.29
8.2.100.0060.00617.63
8.2.90.0040.00419.34
8.2.80.0040.00417.97
8.2.70.0030.00717.50
8.2.60.0080.00018.04
8.2.50.0090.00318.07
8.2.40.0050.00318.32
8.2.30.0030.00618.15
8.2.20.0050.00317.80
8.2.10.0040.00418.06
8.2.00.0000.00717.65
8.1.280.0090.00925.92
8.1.270.0040.00420.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.18
8.1.230.0090.00317.48
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0040.00420.38
8.1.160.0040.00422.01
8.1.150.0040.00418.89
8.1.140.0040.00417.49
8.1.130.0030.00317.82
8.1.120.0030.00717.32
8.1.110.0040.00417.46
8.1.100.0020.00517.41
8.1.90.0030.00417.34
8.1.80.0070.00017.45
8.1.70.0030.00317.46
8.1.60.0030.00617.57
8.1.50.0040.00417.54
8.1.40.0000.00817.55
8.1.30.0000.00817.48
8.1.20.0040.00417.52
8.1.10.0030.00617.46
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0080.00018.35
8.0.270.0070.00017.13
8.0.260.0000.00817.33
8.0.250.0070.00017.00
8.0.240.0030.00316.99
8.0.230.0040.00716.96
8.0.220.0070.00016.79
8.0.210.0050.00216.88
8.0.200.0030.00316.83
8.0.190.0080.00316.83
8.0.180.0120.00016.81
8.0.170.0040.00416.88
8.0.160.0000.00716.83
8.0.150.0070.00016.87
8.0.140.0040.00416.74
8.0.130.0050.00013.30
8.0.120.0040.00416.75
8.0.110.0050.00216.71
8.0.100.0040.00416.71
8.0.90.0040.00416.67
8.0.80.0070.01016.84
8.0.70.0040.00416.79
8.0.60.0040.00416.84
8.0.50.0000.00716.88
8.0.30.0170.00917.05
8.0.20.0080.01217.40
8.0.10.0000.00717.05
8.0.00.0060.01116.86
7.4.330.0060.00015.09
7.4.320.0000.00616.42
7.4.300.0030.00316.46
7.4.290.0080.00316.61
7.4.280.0030.00916.61
7.4.270.0000.00716.57
7.4.260.0070.00316.50
7.4.250.0070.00016.34
7.4.240.0020.00516.59
7.4.230.0000.00716.39
7.4.220.0070.01016.65
7.4.210.0030.01116.47
7.4.200.0040.00416.50
7.4.160.0040.01216.59
7.4.150.0110.00817.40
7.4.140.0090.01017.86
7.4.130.0080.01116.53
7.4.120.0110.00716.57
7.4.110.0060.01316.44
7.4.100.0070.01116.44
7.4.90.0150.00416.41
7.4.80.0040.01319.39
7.4.70.0100.00716.71
7.4.60.0130.00316.44
7.4.50.0040.00416.77
7.4.40.0160.00316.58
7.4.30.0070.01116.51
7.4.00.0100.00514.93
7.3.330.0000.00513.23
7.3.320.0050.01013.16
7.3.310.0030.00316.29
7.3.300.0070.00016.23
7.3.290.0040.00416.22
7.3.280.0100.00816.35
7.3.270.0060.01117.40
7.3.260.0180.00016.34
7.3.250.0080.01016.57
7.3.240.0200.00316.45
7.3.230.0090.00916.39
7.3.210.0090.00616.63
7.3.200.0100.01419.39
7.3.190.0100.00616.48
7.3.180.0120.00416.40
7.3.170.0070.01016.45
7.3.160.0140.00316.53
7.3.120.0060.00914.86
7.3.110.0090.00914.77
7.3.100.0040.01214.79
7.3.90.0050.01214.76
7.3.80.0050.01014.67
7.3.70.0060.00814.71
7.3.60.0130.00114.83
7.3.50.0020.01014.95
7.3.40.0070.00714.84
7.3.30.0070.00314.63
7.3.20.0080.00516.73
7.3.10.0060.00616.63
7.3.00.0030.00816.72
7.2.330.0110.01116.72
7.2.320.0120.00616.66
7.2.310.0060.01216.79
7.2.300.0060.01016.70
7.2.290.0130.00916.85
7.2.250.0090.01115.22
7.2.240.0100.01015.03
7.2.230.0020.01615.13
7.2.220.0080.00615.01
7.2.210.0050.01115.21
7.2.200.0050.00915.06
7.2.190.0090.00514.96
7.2.180.0060.00615.06
7.2.170.0050.01014.93
7.2.110.0190.00016.40
7.2.100.0120.01216.46
7.2.90.0310.01216.67
7.2.80.0270.00316.47
7.2.70.0260.00417.06
7.2.60.0100.00717.12
7.2.50.0150.00916.91
7.2.40.0110.00716.95
7.2.30.0130.00616.80
7.2.20.0090.00916.91
7.2.10.0230.00816.95
7.2.00.0020.01618.16
7.1.330.0090.00515.97
7.1.320.0080.00515.85
7.1.310.0020.01515.90
7.1.300.0020.01015.83
7.1.290.0050.00915.92
7.1.280.0020.00915.90
7.1.270.0080.00515.80
7.1.260.0020.00915.74
7.1.230.0100.01015.75
7.1.220.0130.00315.62
7.1.210.0330.00315.93
7.1.200.0160.00315.54
7.1.190.0130.00315.65
7.1.180.0110.00415.89
7.1.170.0120.00615.88
7.1.160.0100.00315.64
7.1.150.0180.00016.04
7.1.140.0100.00615.80
7.1.130.0140.00415.87
7.1.120.0110.00615.64
7.1.110.0140.00415.81
7.1.100.0060.00616.94
7.1.90.0130.00415.83
7.1.80.0120.00215.87
7.1.70.0060.00816.28
7.1.60.0080.01017.69
7.1.50.0180.00925.34
7.1.40.0160.00515.97
7.1.30.0090.00915.99
7.1.20.0040.01215.70
7.1.10.0150.00015.77
7.1.00.0070.04219.09
7.0.310.0210.00315.41
7.0.300.0100.00715.27
7.0.290.0000.01615.31
7.0.280.0130.00015.49
7.0.270.0260.01015.45
7.0.260.0310.00315.49
7.0.250.0070.01115.62
7.0.240.0130.00015.40
7.0.230.0070.00715.32
7.0.220.0130.00415.16
7.0.210.0090.00615.32
7.0.200.0090.00515.09
7.0.190.0140.00015.58
7.0.180.0170.00015.48
7.0.170.0150.00315.42
7.0.160.0070.01015.36
7.0.150.0080.00915.42
7.0.140.0110.02518.78
7.0.130.0140.00015.13
7.0.120.0110.03018.85
7.0.110.0090.04118.79
7.0.100.0070.04018.79
7.0.90.0080.03518.77
7.0.80.0020.04118.76
7.0.70.0070.04218.79
7.0.60.0070.03318.71
7.0.50.0040.04218.84
7.0.40.0080.03717.85
7.0.30.0070.03817.62
7.0.20.0050.04217.76
7.0.10.0120.03317.83
7.0.00.0070.04117.79
5.6.380.0130.00314.43
5.6.370.0060.01014.65
5.6.360.0080.00614.48
5.6.350.0120.00314.38
5.6.340.0080.00814.18
5.6.330.0120.00014.66
5.6.320.0170.00014.74
5.6.310.0080.00514.25
5.6.300.0060.01214.00
5.6.290.0090.00614.27
5.6.280.0120.03317.54
5.6.270.0090.00914.46
5.6.260.0040.04417.78
5.6.250.0070.03617.59
5.6.240.0060.04117.50
5.6.230.0080.03917.75
5.6.220.0080.03817.68
5.6.210.0120.03517.63
5.6.200.0070.04017.73
5.6.190.0020.04517.64
5.6.180.0030.04117.61
5.6.170.0080.04117.64
5.6.160.0080.03917.60
5.6.150.0120.03317.54
5.6.140.0090.03917.67
5.6.130.0090.03817.66
5.6.120.0060.04117.64
5.6.110.0090.03817.60
5.6.100.0040.04517.72
5.6.90.0100.03717.66
5.6.80.0050.04017.27
5.6.70.0110.03017.29
5.6.60.0090.03817.43
5.6.50.0090.03817.31
5.6.40.0100.03717.32
5.6.30.0090.03917.42
5.6.20.0030.04017.34
5.6.10.0060.03317.26
5.6.00.0060.03217.29
5.5.380.0080.03515.14
5.5.370.0020.04015.21
5.5.360.0060.04115.21
5.5.350.0080.03515.20
5.5.340.0070.03715.47
5.5.330.0000.04315.32
5.5.320.0100.03315.45
5.5.310.0060.03215.47
5.5.300.0060.03715.39
5.5.290.0070.03715.47
5.5.280.0090.03515.34
5.5.270.0050.03815.31
5.5.260.0070.03615.46
5.5.250.0100.03515.22
5.5.240.0050.03715.01
5.5.230.0070.03815.02
5.5.220.0080.02715.21
5.5.210.0090.03115.13
5.5.200.0070.03315.02
5.5.190.0060.03515.13
5.5.180.0070.03515.12
5.5.170.0160.00314.34
5.5.160.0050.03515.07
5.5.150.0060.03515.00
5.5.140.0080.03115.07
5.5.130.0090.03115.13
5.5.120.0060.03315.06
5.5.110.0020.03614.96
5.5.100.0040.03815.07
5.5.90.0050.03014.95
5.5.80.0060.03514.96
5.5.70.0020.04115.09
5.5.60.0080.03315.08
5.5.50.0080.03215.03
5.5.40.0060.03215.08
5.5.30.0030.03515.08
5.5.20.0050.03514.94
5.5.10.0050.03814.94
5.5.00.0100.03215.09
5.4.450.0100.03516.11
5.4.440.0050.03816.02
5.4.430.0000.03616.14
5.4.420.0020.03216.06
5.4.410.0090.03316.00
5.4.400.0020.03915.89
5.4.390.0050.03715.87
5.4.380.0050.03515.98
5.4.370.0050.03516.01
5.4.360.0040.03915.97
5.4.350.0040.03315.86
5.4.340.0030.03815.84
5.4.330.0100.00212.79
5.4.320.0110.03315.92
5.4.310.0090.03115.89
5.4.300.0060.03515.97
5.4.290.0100.03015.86
5.4.280.0050.03715.94
5.4.270.0040.03415.90
5.4.260.0070.03515.95
5.4.250.0040.03815.86
5.4.240.0080.03516.01
5.4.230.0080.03215.85
5.4.220.0080.03215.93
5.4.210.0080.03415.86
5.4.200.0000.03816.03
5.4.190.0070.03415.86
5.4.180.0000.03915.86
5.4.170.0050.03915.86
5.4.160.0040.03815.89
5.4.150.0070.03715.90
5.4.140.0070.03514.63
5.4.130.0060.03414.47
5.4.120.0050.03514.63
5.4.110.0130.03214.53
5.4.100.0100.03314.65
5.4.90.0070.03414.53
5.4.80.0050.03514.58
5.4.70.0050.03314.58
5.4.60.0080.03314.47
5.4.50.0050.03514.63
5.4.40.0020.03714.65
5.4.30.0050.03314.56
5.4.20.0070.03314.64
5.4.10.0080.03314.63
5.4.00.0080.03114.24
5.3.290.0030.03113.64
5.3.280.0070.03313.64
5.3.270.0060.03713.70
5.3.260.0070.03613.59
5.3.250.0050.03513.71
5.3.240.0030.03713.61
5.3.230.0060.03513.64
5.3.220.0110.03213.69
5.3.210.0050.03913.71
5.3.200.0090.03413.69
5.3.190.0080.03313.61
5.3.180.0060.03513.61
5.3.170.0100.03313.64
5.3.160.0070.03313.57
5.3.150.0040.03313.65
5.3.140.0050.03513.72
5.3.130.0040.03513.64
5.3.120.0060.03513.70
5.3.110.0040.03713.61
5.3.100.0040.03413.45
5.3.90.0020.03613.33
5.3.80.0070.03213.31
5.3.70.0030.03213.43
5.3.60.0040.03513.33
5.3.50.0020.03413.34
5.3.40.0060.03213.26
5.3.30.0040.03013.26
5.3.20.0050.03413.17
5.3.10.0050.03313.15
5.3.00.0060.02813.17
5.2.170.0080.02812.00
5.2.160.0040.03011.86
5.2.150.0080.02711.86
5.2.140.0040.03211.94
5.2.130.0040.02912.02
5.2.120.0050.03011.91
5.2.110.0080.02611.95
5.2.100.0030.02812.02
5.2.90.0020.02611.92
5.2.80.0040.03011.95
5.2.70.0040.02811.89
5.2.60.0060.02711.96
5.2.50.0020.03111.94
5.2.40.0030.02911.85
5.2.30.0020.03211.85
5.2.20.0050.03011.85
5.2.10.0040.02711.94
5.2.00.0070.02711.87
5.1.60.0050.02211.39
5.1.50.0030.02511.42
5.1.40.0040.02211.36
5.1.30.0030.02311.68
5.1.20.0050.02311.57
5.1.10.0030.02611.39
5.1.00.0100.02211.40
5.0.50.0030.02011.25
5.0.40.0050.01711.25
5.0.30.0090.02511.25
5.0.20.0030.02011.25
5.0.10.0050.02011.25
5.0.00.0050.02811.25
4.4.90.0020.01511.25
4.4.80.0020.01511.25
4.4.70.0020.01711.25
4.4.60.0050.01311.25
4.4.50.0010.01611.25
4.4.40.0000.02911.25
4.4.30.0060.01411.25
4.4.20.0050.01011.25
4.4.10.0030.01311.25
4.4.00.0020.02611.25
4.3.110.0030.01511.25
4.3.100.0020.01711.25
4.3.90.0000.01911.25
4.3.80.0080.01811.25
4.3.70.0040.01211.25
4.3.60.0030.01511.25
4.3.50.0080.01311.25
4.3.40.0000.02611.25
4.3.30.0040.01311.25
4.3.20.0060.01611.25
4.3.10.0060.01211.25
4.3.00.0050.01511.25

preferences:
51.64 ms | 400 KiB | 5 Q