3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array('name' => 'infotel', 'value' => '+39080123456' ), array('name' => 'location', 'value' => 'Bari') ); $arr = array_column($array, 'value', 'name'); $result = []; array_walk($arr, function(&$v, $k) use (&$result){ if ($k == 'infotel') $result['telehone'] = $v; if ($k == 'location') $result['city'] = $v; }); echo 'telephone: ' . $result['telephone'] . "/n"; echo 'city: ' . $result['city'] . "/n";

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.0060.00916.86
8.3.50.0090.00821.99
8.3.40.0040.01118.79
8.3.30.0030.01018.91
8.3.20.0000.00820.34
8.3.10.0070.00023.61
8.3.00.0040.00419.81
8.2.180.0160.00316.63
8.2.170.0150.00022.96
8.2.160.0070.00720.35
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0060.00320.95
8.2.110.0040.00422.20
8.2.100.0160.00017.84
8.2.90.0050.00319.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0040.00418.30
8.2.20.0030.00517.90
8.2.10.0040.00418.04
8.2.00.0040.00417.74
8.1.280.0070.00725.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.66
8.1.230.0100.00019.21
8.1.220.0050.00317.76
8.1.210.0040.00418.77
8.1.200.0000.00917.38
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0030.00518.68
8.1.160.0070.00022.07
8.1.150.0040.00418.65
8.1.140.0000.00817.39
8.1.130.0030.00317.75
8.1.120.0030.00517.38
8.1.110.0070.00017.37
8.1.100.0000.00717.42
8.1.90.0030.00317.36
8.1.80.0000.00717.48
8.1.70.0000.00717.36
8.1.60.0000.00717.61
8.1.50.0000.00817.41
8.1.40.0040.00417.54
8.1.30.0030.00517.64
8.1.20.0000.00817.68
8.1.10.0000.00717.53
8.1.00.0060.00617.48
8.0.300.0080.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.40
8.0.270.0070.00017.26
8.0.260.0050.00317.13
8.0.250.0000.00816.93
8.0.240.0030.00316.93
8.0.230.0000.00717.02
8.0.220.0040.00416.99
8.0.210.0070.00016.84
8.0.200.0070.00017.00
8.0.190.0000.00716.94
8.0.180.0000.00816.86
8.0.170.0060.00316.87
8.0.160.0030.00317.02
8.0.150.0040.00417.02
8.0.140.0050.00216.82
8.0.130.0000.00513.33
8.0.120.0080.00016.88
8.0.110.0030.00516.96
8.0.100.0050.00316.92
8.0.90.0030.00516.92
8.0.80.0160.00616.98
8.0.70.0030.00616.85
8.0.60.0000.00716.89
8.0.50.0040.00417.01
8.0.30.0100.00917.06
8.0.20.0050.01517.40
8.0.10.0070.00017.07
8.0.00.0110.01116.73
7.4.330.0030.00315.13
7.4.320.0000.00716.57
7.4.300.0000.00616.60
7.4.290.0000.00716.52
7.4.280.0000.00716.50
7.4.270.0000.00716.59
7.4.260.0040.00416.55
7.4.250.0050.00216.42
7.4.240.0040.00416.58
7.4.230.0000.00716.53
7.4.220.0120.00616.69
7.4.210.0090.00616.70
7.4.200.0030.00316.36
7.4.160.0060.00916.62
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0050.01316.52
7.4.120.0050.01316.57
7.4.110.0070.01016.50
7.4.100.0140.00416.71
7.4.90.0090.01216.61
7.4.80.0090.00919.39
7.4.70.0090.00616.41
7.4.60.0080.01116.43
7.4.50.0030.00516.34
7.4.40.0040.01216.50
7.4.30.0100.00716.73
7.4.00.0070.01014.78
7.3.330.0030.00313.44
7.3.320.0030.00313.43
7.3.310.0000.00716.38
7.3.300.0070.00016.43
7.3.290.0040.01116.48
7.3.280.0100.00916.40
7.3.270.0060.01217.40
7.3.260.0100.01016.34
7.3.250.0080.01016.42
7.3.240.0070.01016.46
7.3.230.0040.01116.64
7.3.210.0100.00716.57
7.3.200.0060.00919.39
7.3.190.0170.00716.48
7.3.180.0060.00916.39
7.3.170.0100.00616.57
7.3.160.0090.00616.62
7.3.120.0030.01414.64
7.3.10.0060.00616.57
7.3.00.0000.01416.84
7.2.330.0150.00316.80
7.2.320.0100.00616.61
7.2.310.0090.00916.72
7.2.300.0100.00716.53
7.2.290.0100.00616.63
7.2.130.0080.00517.11
7.2.120.0030.00716.53
7.2.110.0060.00916.71
7.2.100.0090.00516.86
7.2.90.0060.01016.83
7.2.80.0070.01416.98
7.2.70.0120.00616.66
7.2.60.0090.00916.86
7.2.50.0100.00716.96
7.2.40.0080.00816.85
7.2.30.0070.00716.63
7.2.20.0100.01016.69
7.2.10.0070.00716.88
7.2.00.0060.00618.24
7.1.250.0100.00715.84
7.1.100.0000.01218.18
7.1.70.0000.01116.88
7.1.60.0070.00417.25
7.1.50.0060.01317.00
7.1.00.0000.08022.50
7.0.200.0050.00516.73
7.0.140.0030.07322.04
7.0.60.0100.07319.92
7.0.50.0070.04717.89
7.0.40.0100.08720.18
7.0.30.0570.07020.12
7.0.20.0200.08020.19
7.0.10.0030.08320.15
7.0.00.0070.04720.26
5.6.280.0100.06720.91
5.6.210.0070.08020.50
5.6.200.0100.08018.19
5.6.190.0000.06720.39
5.6.180.3770.03720.46
5.6.170.0330.08020.50
5.6.160.0070.08320.57
5.6.150.0100.04718.18
5.6.140.0130.07718.20
5.6.130.0070.06318.18
5.6.120.0100.08021.02
5.6.110.0170.05721.09
5.6.100.0130.08021.02
5.6.90.0070.07721.02
5.6.80.0200.06320.41
5.6.70.3630.03020.37
5.5.350.0000.04320.41
5.5.340.0070.08017.95
5.5.330.0030.06720.42
5.5.320.0330.07320.24
5.5.310.0270.06320.41
5.5.300.0170.06717.96
5.5.290.0000.04717.95
5.5.280.0070.04720.87
5.5.270.0130.07320.65
5.5.260.0100.08020.96
5.5.250.0030.08320.62
5.5.240.0230.03720.26
5.4.450.0270.04319.55
5.4.440.0070.04045.03
5.4.430.0370.03019.54
5.4.420.0330.03043.91
5.4.410.0270.04343.90
5.4.400.0600.04343.90
5.4.390.0470.04343.89
5.4.380.0070.06018.63
5.4.370.0130.05318.68
5.4.360.0170.07318.68
5.4.350.0200.06718.75
5.4.340.0100.05718.55
5.4.320.0040.03812.50
5.4.310.0060.04012.50
5.4.300.0110.04112.50
5.4.290.0080.04012.50
5.4.280.0080.03712.39
5.4.270.0110.03212.39
5.4.260.0040.04012.39
5.4.250.0060.04312.40
5.4.240.0050.03812.40
5.4.230.0070.03712.39
5.4.220.0070.03412.39
5.4.210.0060.03612.38
5.4.200.0080.03512.39
5.4.190.0040.03912.39
5.4.180.0040.04012.38
5.4.170.0060.04412.39
5.4.160.0080.03412.39
5.4.150.0010.04112.38
5.4.140.0050.03812.07
5.4.130.0050.03612.06
5.4.120.0050.03712.02
5.4.110.0070.03512.02
5.4.100.0050.04012.02
5.4.90.0060.04912.01
5.4.80.0050.03912.01
5.4.70.0070.03612.01
5.4.60.0020.04012.01
5.4.50.0070.03912.00
5.4.40.0060.03512.00
5.4.30.0040.03711.99
5.4.20.0060.03612.00
5.4.10.0060.03412.00
5.4.00.0080.04011.48
5.3.290.0080.04412.80
5.3.280.0040.04012.70
5.3.270.0060.03912.72
5.3.260.0050.04012.71
5.3.250.0090.03912.71
5.3.240.0060.04112.71
5.3.230.0030.04312.71
5.3.220.0080.03612.68
5.3.210.0050.04112.68
5.3.200.0080.03412.68
5.3.190.0050.04612.68
5.3.180.0050.03712.68
5.3.170.0080.03512.67
5.3.160.0100.03512.67
5.3.150.0090.03612.68
5.3.140.0070.03712.66
5.3.130.0060.03912.66
5.3.120.0080.03712.66
5.3.110.0060.03812.66
5.3.100.0060.03812.12
5.3.90.0040.04612.09
5.3.80.0090.03712.07
5.3.70.0090.03712.07
5.3.60.0110.03612.06
5.3.50.0050.03912.00
5.3.40.0060.03912.00
5.3.30.0070.03611.95
5.3.20.0030.03911.73
5.3.10.0080.03711.70
5.3.00.0080.03911.69
5.2.170.0060.0329.19
5.2.160.0070.0349.18
5.2.150.0040.0319.19
5.2.140.0040.0329.18
5.2.130.0070.0289.14
5.2.120.0060.0279.14
5.2.110.0080.0269.15
5.2.100.0070.0269.14
5.2.90.0050.0309.14
5.2.80.0030.0329.14
5.2.70.0080.0339.14
5.2.60.0070.0279.09
5.2.50.0050.0299.06
5.2.40.0040.0299.04
5.2.30.0020.0339.01
5.2.20.0060.0279.00
5.2.10.0080.0328.92
5.2.00.0050.0288.79
5.1.60.0050.0228.07
5.1.50.0070.0308.07
5.1.40.0040.0258.05
5.1.30.0050.0258.39
5.1.20.0060.0308.42
5.1.10.0040.0298.14
5.1.00.0030.0278.14
5.0.50.0030.0226.62
5.0.40.0010.0276.49
5.0.30.0030.0326.29
5.0.20.0020.0216.26
5.0.10.0050.0186.25
5.0.00.0030.0316.23
4.4.90.0030.0184.78
4.4.80.0010.0174.75
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0060.0284.71
4.4.30.0060.0134.76
4.4.20.0020.0174.84
4.4.10.0030.0224.85
4.4.00.0060.0294.76
4.3.110.0030.0164.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0020.0254.59
4.3.70.0040.0144.63
4.3.60.0020.0154.63
4.3.50.0040.0174.63
4.3.40.0030.0234.54
4.3.30.0010.0243.28
4.3.20.0040.0143.25
4.3.10.0050.0223.23
4.3.00.0100.01743.89

preferences:
39.82 ms | 401 KiB | 5 Q