3v4l.org

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

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.0140.00318.74
8.3.30.0120.00319.04
8.3.20.0070.00020.20
8.3.10.0040.00423.67
8.3.00.0080.00019.66
8.2.170.0110.00322.96
8.2.160.0040.01120.52
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.01426.16
8.2.120.0000.00721.01
8.2.110.0030.00622.07
8.2.100.0040.00718.22
8.2.90.0080.00019.40
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00318.05
8.2.50.0030.00618.07
8.2.40.0030.00618.47
8.2.30.0000.00818.21
8.2.20.0070.00017.79
8.2.10.0070.00018.12
8.2.00.0040.00417.77
8.1.270.0110.00423.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.69
8.1.230.0120.00018.98
8.1.220.0080.00017.77
8.1.210.0080.00018.77
8.1.200.0000.01117.23
8.1.190.0000.00817.13
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0000.00721.99
8.1.150.0070.00018.54
8.1.140.0040.00417.48
8.1.130.0000.00717.86
8.1.120.0000.00717.52
8.1.110.0070.00017.37
8.1.100.0000.00717.37
8.1.90.0000.00717.49
8.1.80.0090.00017.50
8.1.70.0030.00317.46
8.1.60.0040.00417.59
8.1.50.0050.00317.45
8.1.40.0000.00817.58
8.1.30.0000.00917.55
8.1.20.0080.00017.57
8.1.10.0000.00817.64
8.1.00.0030.00617.37
8.0.300.0040.00418.77
8.0.290.0000.00816.58
8.0.280.0030.00318.33
8.0.270.0000.00717.25
8.0.260.0000.00618.50
8.0.250.0000.00716.97
8.0.240.0030.00316.90
8.0.230.0030.00316.96
8.0.220.0000.00716.93
8.0.210.0070.00016.79
8.0.200.0000.00616.89
8.0.190.0040.00416.98
8.0.180.0050.00316.96
8.0.170.0040.00416.80
8.0.160.0060.00316.82
8.0.150.0040.00416.85
8.0.140.0000.00816.88
8.0.130.0000.00513.27
8.0.120.0000.00716.88
8.0.110.0040.00416.78
8.0.100.0000.00816.76
8.0.90.0040.00416.70
8.0.80.0090.00616.86
8.0.70.0040.00417.02
8.0.60.0000.00717.02
8.0.50.0050.00216.75
8.0.30.0110.00916.93
8.0.20.0100.00917.40
8.0.10.0040.00416.85
8.0.00.0090.00916.82
7.4.330.0000.00515.21
7.4.320.0000.00616.56
7.4.300.0030.00316.50
7.4.290.0000.00716.50
7.4.280.0050.00316.55
7.4.270.0000.00716.62
7.4.260.0000.00716.60
7.4.250.0000.00716.41
7.4.240.0040.00316.48
7.4.230.0040.00416.43
7.4.220.0140.00416.69
7.4.210.0070.00716.60
7.4.200.0040.00416.32
7.4.160.0110.00716.45
7.4.150.0070.01117.40
7.4.140.0070.00917.86
7.4.130.0030.01316.38
7.4.120.0090.00816.53
7.4.110.0110.00516.46
7.4.100.0110.00716.43
7.4.90.0090.00916.70
7.4.80.0150.00319.39
7.4.70.0060.01116.58
7.4.60.0080.00816.50
7.4.50.0060.00316.40
7.4.40.0060.00916.48
7.4.30.0000.01516.66
7.4.10.0120.00314.77
7.4.00.0050.01215.02
7.3.330.0030.00313.34
7.3.320.0000.00513.19
7.3.310.0060.00016.40
7.3.300.0000.00716.25
7.3.290.0030.01316.38
7.3.280.0050.01316.38
7.3.270.0110.00617.40
7.3.260.0080.00816.36
7.3.250.0130.00816.42
7.3.240.0170.00016.55
7.3.230.0150.00916.45
7.3.210.0140.00416.34
7.3.200.0140.00319.39
7.3.190.0140.00716.45
7.3.180.0150.00016.56
7.3.170.0120.00916.37
7.3.160.0030.01216.38
7.3.130.0130.00614.75
7.3.120.0110.00514.85
7.3.110.0130.00614.53
7.3.100.0040.00814.78
7.3.90.0000.01614.92
7.3.80.0100.00314.90
7.3.70.0100.00714.86
7.3.60.0040.01114.61
7.3.50.0040.01114.78
7.3.40.0070.00714.79
7.3.30.0090.00314.76
7.3.20.0060.00916.70
7.3.10.0060.00916.71
7.3.00.0090.00316.63
7.2.330.0090.00916.52
7.2.320.0120.01216.70
7.2.310.0100.00716.56
7.2.300.0120.00316.89
7.2.290.0090.01216.75
7.2.260.0070.01115.03
7.2.250.0070.01315.27
7.2.240.0030.01315.18
7.2.230.0160.00015.05
7.2.220.0090.00314.68
7.2.210.0100.00314.97
7.2.200.0140.00415.23
7.2.190.0070.00715.01
7.2.180.0030.01015.01
7.2.170.0060.00914.77
7.2.160.0090.00615.27
7.2.150.0060.00616.82
7.2.140.0030.01216.75
7.2.130.0030.01416.98
7.2.120.0090.00617.00
7.2.110.0100.00317.01
7.2.100.0000.00916.81
7.2.90.0100.00717.00
7.2.80.0060.01116.96
7.2.70.0000.01516.76
7.2.60.0060.00317.05
7.2.50.0050.00817.01
7.2.40.0070.00716.86
7.2.30.0030.00916.88
7.2.20.0000.01416.98
7.2.10.0000.00917.13
7.2.00.0000.01518.30
7.1.330.0030.01015.75
7.1.320.0000.01515.95
7.1.310.0030.00615.76
7.1.300.0040.01115.76
7.1.290.0070.00715.82
7.1.280.0090.00015.97
7.1.270.0090.00615.77
7.1.260.0040.00716.00
7.1.250.0040.01115.86
7.1.240.0060.00916.02
7.1.230.0040.00715.90
7.1.220.0000.01315.86
7.1.210.0060.01015.95
7.1.200.0100.00315.83
7.1.190.0080.00415.95
7.1.180.0060.00915.93
7.1.170.0030.00715.95
7.1.160.0040.00815.93
7.1.150.0040.00415.93
7.1.140.0090.00315.96
7.1.130.0060.01015.97
7.1.120.0000.01215.90
7.1.110.0070.00415.99
7.1.100.0050.00817.07
7.1.90.0030.00915.85
7.1.80.0040.00415.89
7.1.70.0030.00716.34
7.1.60.0070.01017.80
7.1.50.0070.01016.34
7.1.40.0030.01015.84
7.1.30.0060.00915.76
7.1.20.0040.01115.51
7.1.10.0070.00715.78
7.1.00.0050.04219.06
7.0.330.0120.00315.44
7.0.320.0040.00915.23
7.0.310.0000.01315.39
7.0.300.0030.01015.49
7.0.290.0040.00415.20
7.0.280.0080.00015.59
7.0.270.0030.00915.52
7.0.260.0040.00415.42
7.0.250.0030.00715.57
7.0.240.0060.00615.62
7.0.230.0070.00315.21
7.0.220.0060.00915.64
7.0.210.0030.01015.18
7.0.200.0030.00816.12
7.0.190.0050.00815.28
7.0.180.0040.00815.19
7.0.170.0000.01415.46
7.0.160.0030.00615.68
7.0.150.0040.00715.57
7.0.140.0050.04018.65
7.0.130.0080.00415.34
7.0.120.0030.00615.52
7.0.110.0100.00715.42
7.0.100.0080.00415.41
7.0.90.0110.00415.53
7.0.80.0100.00715.41
7.0.70.0070.00715.23
7.0.60.0050.04017.73
7.0.50.0050.02516.61
7.0.40.0050.04816.76
7.0.30.0180.04216.86
7.0.20.0150.04416.86
7.0.10.0050.02916.74
7.0.00.0130.03816.69
5.6.400.0040.01114.78
5.6.390.0030.00714.40
5.6.380.0030.00714.26
5.6.370.0000.01414.48
5.6.360.0100.00714.70
5.6.350.0040.01114.24
5.6.340.0100.00314.61
5.6.330.0110.00414.30
5.6.320.0000.00914.32
5.6.310.0040.00714.46
5.6.300.0000.01214.55
5.6.290.0080.00314.66
5.6.280.0080.03717.68
5.6.270.0070.00714.56
5.6.260.0040.00714.60
5.6.250.0040.01114.42
5.6.240.0000.00914.55
5.6.230.0030.00914.41
5.6.220.0070.01014.65
5.6.210.0030.04617.68
5.6.200.0000.02616.31
5.6.190.0020.03017.34
5.6.180.0100.02517.38
5.6.170.0150.04517.40
5.6.160.0050.04217.35
5.6.150.0080.04116.37
5.6.140.0060.02216.25
5.6.130.0050.04316.29
5.6.120.0030.05017.75
5.6.110.0080.04517.75
5.6.100.0100.04117.76
5.6.90.0050.03117.66
5.6.80.0050.04517.57
5.6.70.0000.01514.07
5.6.60.0060.00314.33
5.6.50.0060.00613.95
5.6.40.0000.01214.45
5.6.30.0030.00714.18
5.6.20.0090.00314.56
5.6.10.0100.00314.39
5.6.00.0100.00714.46
5.5.380.0080.00414.60
5.5.370.0060.01214.33
5.5.360.0110.00714.58
5.5.350.0110.04217.32
5.5.340.0050.04116.15
5.5.330.0050.05017.45
5.5.320.0170.02517.18
5.5.310.0170.04717.41
5.5.300.0050.02416.02
5.5.290.0030.04916.33
5.5.280.0140.03817.54
5.5.270.0060.03017.43
5.5.260.0080.03617.46
5.5.250.0030.04917.48
5.5.240.0040.04017.21
5.5.230.0060.00914.25
5.5.220.0030.00814.52
5.5.210.0030.01414.45
5.5.200.0060.00614.45
5.5.190.0030.01414.29
5.5.180.0070.00414.51
5.5.170.0070.01014.51
5.5.160.0090.00914.10
5.5.150.0030.01014.45
5.5.140.0000.01614.08
5.5.130.0070.00714.35
5.5.120.0040.01214.18
5.5.110.0070.01014.39
5.5.100.0030.00714.05
5.5.90.0120.00414.42
5.5.80.0060.01014.24
5.5.70.0080.00814.43
5.5.60.0070.01114.10
5.5.50.0070.01114.13
5.5.40.0030.00914.33
5.5.30.0030.00714.29
5.5.20.0070.00314.51
5.5.10.0040.01114.53
5.5.00.0060.00614.32
5.4.450.0240.02015.57
5.4.440.0120.02715.67
5.4.430.0130.02515.67
5.4.420.0350.02315.55
5.4.410.0200.02027.88
5.4.400.0600.02315.34
5.4.390.0200.02527.87
5.4.380.0100.02815.23
5.4.370.0150.02515.29
5.4.360.0220.02515.18
5.4.350.0120.02815.23
5.4.340.0120.03015.25
5.4.330.0030.01211.82
5.4.320.0080.02012.17
5.4.310.0050.02612.16
5.4.300.0050.02212.16
5.4.290.0080.02112.16
5.4.280.0050.02012.11
5.4.270.0040.02212.11
5.4.260.0050.02312.11
5.4.250.0020.02312.11
5.4.240.0020.02412.11
5.4.230.0030.02512.11
5.4.220.0050.02212.11
5.4.210.0050.02212.11
5.4.200.0040.02212.10
5.4.190.0050.02212.11
5.4.180.0040.02312.10
5.4.170.0060.02312.11
5.4.160.0060.02112.11
5.4.150.0030.02412.11
5.4.140.0060.01911.95
5.4.130.0020.02411.94
5.4.120.0060.02211.92
5.4.110.0020.02111.92
5.4.100.0060.01911.92
5.4.90.0020.02411.92
5.4.80.0050.02211.92
5.4.70.0030.02111.92
5.4.60.0020.02211.92
5.4.50.0040.02111.92
5.4.40.0040.02311.91
5.4.30.0070.02111.91
5.4.20.0050.02011.91
5.4.10.0040.02611.91
5.4.00.0030.02311.65
5.3.290.0040.02412.31
5.3.280.0040.02912.27
5.3.270.0060.02012.28
5.3.260.0050.02512.27
5.3.250.0020.02212.27
5.3.240.0060.01812.27
5.3.230.0060.02512.27
5.3.220.0040.02312.25
5.3.210.0050.02512.25
5.3.200.0060.02012.25
5.3.190.0110.01912.25
5.3.180.0040.02212.25
5.3.170.0070.01912.25
5.3.160.0070.02112.25
5.3.150.0070.02212.25
5.3.140.0060.01912.24
5.3.130.0030.02212.24
5.3.120.0060.02312.24
5.3.110.0050.02012.24
5.3.100.0070.01911.97
5.3.90.0040.02011.95
5.3.80.0060.02211.95
5.3.70.0040.02411.95
5.3.60.0020.02611.95
5.3.50.0040.02711.91
5.3.40.0050.01811.91
5.3.30.0070.01811.89
5.3.20.0040.02111.78
5.3.10.0060.01611.76
5.3.00.0020.02411.75
5.2.170.0060.0289.19
5.2.160.0030.0309.18
5.2.150.0020.0339.19
5.2.140.0030.0319.18
5.2.130.0050.0339.14
5.2.120.0050.0289.14
5.2.110.0060.0359.15
5.2.100.0030.0329.14
5.2.90.0020.0319.14
5.2.80.0050.0309.14
5.2.70.0060.0289.14
5.2.60.0030.0319.09
5.2.50.0050.0309.06
5.2.40.0040.0339.04
5.2.30.0090.0279.02
5.2.20.0070.0329.01
5.2.10.0050.0358.92
5.2.00.0040.0358.79
5.1.60.0060.0258.07
5.1.50.0010.0398.07
5.1.40.0060.0218.05
5.1.30.0040.0308.39
5.1.20.0050.0368.42
5.1.10.0060.0288.14
5.1.00.0040.0258.14
5.0.50.0070.0246.63
5.0.40.0050.0186.48
5.0.30.0030.0316.30
5.0.20.0020.0206.27
5.0.10.0060.0236.25
5.0.00.0050.0286.24
4.4.90.0040.0144.78
4.4.80.0020.0164.75
4.4.70.0030.0154.75
4.4.60.0020.0164.75
4.4.50.0020.0164.77
4.4.40.0030.0244.71
4.4.30.0040.0144.76
4.4.20.0010.0174.85
4.4.10.0020.0164.85
4.4.00.0040.0244.76
4.3.110.0030.0154.67
4.3.100.0060.0114.66
4.3.90.0030.0154.63
4.3.80.0030.0244.58
4.3.70.0010.0194.63
4.3.60.0030.0134.63
4.3.50.0050.0134.62
4.3.40.0020.0244.54
4.3.30.0020.0163.28
4.3.20.0010.0173.26
4.3.10.0030.0243.22
4.3.00.0000.02043.91

preferences:
53.18 ms | 400 KiB | 5 Q