3v4l.org

run code in 300+ PHP versions simultaneously
<?php $itinerary = array (array('portName'=>'Day At Sea'), array('portName'=>'Moscow')); $badPorts = array('At Sea', 'Day At Sea', 'Cruising The Mediterranean Sea'); $image = ''; $image .= implode(',', array_reduce($itinerary, function ($result, $item){ if(!in_array($item['portName'], array('At Sea', 'Day At Sea', 'Cruising The Mediterranean Sea'))) $result[] = $item['portName']; //$index++; return $result; }, array())); var_dump($image);

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.0100.00316.63
8.3.50.0200.00216.48
8.3.40.0120.00318.82
8.3.30.0070.00718.79
8.3.20.0040.00418.76
8.3.10.0040.00420.71
8.3.00.0110.00019.50
8.2.180.0110.00418.30
8.2.170.0150.00022.96
8.2.160.0090.00618.89
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0060.00318.89
8.2.110.0040.00420.37
8.2.100.0090.00317.89
8.2.90.0040.00418.22
8.2.80.0020.00519.41
8.2.70.0060.00317.63
8.2.60.0050.00318.05
8.2.50.0040.00818.07
8.2.40.0000.00718.18
8.2.30.0100.00018.20
8.2.20.0000.00919.47
8.2.10.0040.00417.69
8.2.00.0050.00317.69
8.1.280.0120.00325.92
8.1.270.0060.00323.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.18
8.1.230.0030.00720.88
8.1.220.0080.00017.74
8.1.210.0030.00618.85
8.1.200.0060.00317.25
8.1.190.0040.00417.54
8.1.180.0030.00618.10
8.1.170.0000.00820.41
8.1.160.0000.00718.94
8.1.150.0000.00818.61
8.1.140.0000.00717.51
8.1.130.0000.00717.89
8.1.120.0040.00417.34
8.1.110.0050.00217.34
8.1.100.0070.00017.42
8.1.90.0050.00217.53
8.1.80.0040.00417.38
8.1.70.0000.00717.44
8.1.60.0000.00717.61
8.1.50.0050.00217.50
8.1.40.0070.00017.45
8.1.30.0030.00517.49
8.1.20.0030.00617.55
8.1.10.0040.00417.46
8.1.00.0000.00717.32
8.0.300.0070.00020.13
8.0.290.0060.00316.75
8.0.280.0040.00418.39
8.0.270.0030.00317.18
8.0.260.0030.00316.78
8.0.250.0050.00316.90
8.0.240.0000.00816.95
8.0.230.0040.00416.93
8.0.220.0070.00016.80
8.0.210.0020.00516.83
8.0.200.0030.00316.83
8.0.190.0000.00816.91
8.0.180.0040.00416.82
8.0.170.0060.00316.82
8.0.160.0070.00016.98
8.0.150.0060.00316.91
8.0.140.0060.00316.75
8.0.130.0000.00513.24
8.0.120.0050.00216.85
8.0.110.0040.00416.94
8.0.100.0000.00816.68
8.0.90.0030.00316.79
8.0.80.0080.00816.90
8.0.70.0080.00016.68
8.0.60.0000.00716.96
8.0.50.0040.00416.87
8.0.30.0060.01217.00
8.0.20.0120.00617.09
8.0.10.0060.00317.02
8.0.00.0080.01216.74
7.4.330.0030.00312.94
7.4.320.0060.00016.60
7.4.300.0040.00416.55
7.4.290.0030.00516.55
7.4.280.0040.00416.37
7.4.270.0070.00016.60
7.4.260.0050.00013.31
7.4.250.0030.00516.60
7.4.240.0030.00616.57
7.4.230.0000.00716.63
7.4.220.0110.00716.58
7.4.210.0100.01016.63
7.4.200.0040.00416.63
7.4.190.0000.00716.48
7.4.160.0050.01016.45
7.4.150.0070.01016.32
7.4.140.0040.01316.58
7.4.130.0060.01016.43
7.4.120.0080.00816.53
7.4.110.0130.00716.47
7.4.100.0170.00016.47
7.4.90.0120.00616.52
7.4.80.0030.01416.52
7.4.70.0080.00816.50
7.4.60.0040.01516.48
7.4.50.0000.00616.52
7.4.40.0070.01016.44
7.4.30.0110.00816.51
7.4.00.0070.00714.90
7.3.330.0060.00513.31
7.3.320.0050.00013.09
7.3.310.0000.00716.37
7.3.300.0000.00716.18
7.3.290.0040.01116.27
7.3.280.0120.00516.28
7.3.270.0100.01316.44
7.3.260.0120.00616.29
7.3.250.0160.00916.58
7.3.240.0070.01316.32
7.3.230.0100.01016.52
7.3.210.0120.00616.48
7.3.200.0060.01519.39
7.3.190.0100.00716.45
7.3.180.0110.00616.47
7.3.170.0080.00816.48
7.3.160.0130.00316.45
7.3.120.0070.01014.59
7.3.110.0070.01014.68
7.3.100.0080.00414.61
7.3.90.0060.01214.80
7.3.80.0030.00914.57
7.3.70.0060.00914.39
7.3.60.0000.01114.83
7.3.50.0110.00714.57
7.3.40.0070.00714.65
7.3.30.0120.00014.75
7.3.20.0040.00816.64
7.3.10.0060.00616.61
7.3.00.0030.01116.46
7.2.330.0130.00316.61
7.2.320.0090.00916.50
7.2.310.0100.01316.51
7.2.300.0030.01416.51
7.2.290.0100.00616.51
7.2.240.0030.01015.03
7.2.230.0120.00314.99
7.2.220.0090.00915.12
7.2.210.0060.01015.11
7.2.200.0030.01414.90
7.2.190.0110.00414.93
7.2.180.0000.01214.95
7.2.170.0000.01115.10
7.2.160.0030.00715.12
7.2.150.0090.00616.68
7.2.140.0040.01216.47
7.2.130.0060.00616.83
7.2.120.0030.01516.94
7.2.110.0040.01116.85
7.2.100.0070.01316.85
7.2.90.0100.01016.89
7.2.80.0100.00017.14
7.2.70.0070.00716.96
7.2.60.0080.00716.65
7.2.50.0150.00216.95
7.2.40.0030.01216.80
7.2.30.0070.01016.76
7.2.20.0030.01316.73
7.2.10.0030.01017.12
7.2.00.0030.01017.09
7.1.330.0060.01015.82
7.1.320.0100.01015.54
7.1.310.0030.01015.76
7.1.300.0070.00715.66
7.1.290.0090.00315.84
7.1.280.0000.00815.61
7.1.270.0000.01316.00
7.1.260.0080.00415.57
7.1.250.0040.01115.52
7.1.200.0090.00315.75
7.1.70.0000.00717.06
7.1.60.0140.01019.31
7.1.50.0100.01016.70
7.1.00.0000.05022.36
7.0.200.0190.00415.01
7.0.140.0070.07022.18
7.0.120.0070.07022.05
7.0.110.0230.05321.89
7.0.100.0030.07321.82
7.0.90.0030.05721.84
7.0.80.0030.08721.84
7.0.70.0030.07021.74
7.0.60.0030.07021.88
7.0.50.0100.07721.65
7.0.40.0030.08019.79
7.0.30.0170.03319.84
7.0.20.0070.08019.84
7.0.10.0100.07719.75
7.0.00.0070.08019.69
5.6.280.0000.07720.92
5.6.260.0100.07720.66
5.6.250.0000.04020.59
5.6.240.0070.03320.67
5.6.230.0000.07020.66
5.6.220.0000.09020.69
5.6.210.0000.09020.62
5.6.200.0070.05720.56
5.6.190.0030.06020.66
5.6.180.0030.06720.55
5.6.170.0070.05720.47
5.6.160.0030.08720.65
5.6.150.0030.08320.66
5.6.140.0070.09020.84
5.6.130.0070.08720.70
5.6.120.0070.06320.66
5.6.110.0100.07320.54
5.6.100.0100.07320.57
5.6.90.0070.07720.52
5.6.80.0100.07719.85
5.6.70.0070.08320.00
5.6.60.0030.06319.83
5.6.50.0070.08020.03
5.6.40.0100.07319.98
5.6.30.0070.08319.91
5.6.20.0130.07319.94
5.6.10.0100.07020.02
5.6.00.0030.07719.91
5.5.380.0030.06717.47
5.5.370.0000.06717.54
5.5.360.0130.06717.66
5.5.350.0030.08717.59
5.5.340.0000.09018.13
5.5.330.0070.05718.26
5.5.320.0070.08318.09
5.5.310.0070.07018.10
5.5.300.0100.07017.91
5.5.290.0130.07017.93
5.5.280.0130.08018.13
5.5.270.0100.04317.92
5.5.260.0030.06018.13
5.5.250.0000.08017.74
5.5.240.0000.07317.46
5.5.230.0170.07017.48
5.5.220.0070.07317.47
5.5.210.0070.03717.47
5.5.200.0030.08017.46
5.5.190.0000.04317.58
5.5.180.0070.06717.61
5.5.160.0070.03717.28
5.5.150.0100.07317.26
5.5.140.0030.07317.45
5.5.130.0000.08017.40
5.5.120.0030.04017.61
5.5.110.0100.04017.25
5.5.100.0000.04017.09
5.5.90.0070.04317.35
5.5.80.0070.04017.30
5.5.70.0000.07017.33
5.5.60.0070.03317.15
5.5.50.0030.04317.17
5.5.40.0100.02717.20
5.5.30.0030.03717.18
5.5.20.0070.04317.29
5.5.10.0000.04017.50
5.5.00.0070.03317.36
5.4.450.0230.06319.56
5.4.440.0070.07319.27
5.4.430.0130.07319.49
5.4.420.0100.07719.50
5.4.410.0100.06019.14
5.4.400.0100.04018.95
5.4.390.0000.06019.31
5.4.380.0070.06319.18
5.4.370.0070.07719.23
5.4.360.0070.04719.03
5.4.350.0030.08019.08
5.4.340.0130.06719.00
5.4.320.0070.03319.17
5.4.310.0000.04019.03
5.4.300.0030.03719.18
5.4.290.0030.03319.00
5.4.280.0030.04318.98
5.4.270.0030.04019.16
5.4.260.0000.04019.03
5.4.250.0030.03719.18
5.4.240.0000.04019.25
5.4.230.0030.03319.33
5.4.220.0000.03718.98
5.4.210.0070.03019.33
5.4.200.0000.04319.13
5.4.190.0030.03018.98
5.4.180.0070.03719.17
5.4.170.0070.03319.02
5.4.160.0070.03018.99
5.4.150.0030.03318.98
5.4.140.0000.06016.39
5.4.130.0000.04016.49
5.4.120.0070.07016.35
5.4.110.0070.06316.30
5.4.100.0130.06716.26
5.4.90.0000.06016.41
5.4.80.0030.04016.40
5.4.70.0000.07016.45
5.4.60.0030.06016.45
5.4.50.0070.06716.54
5.4.40.0030.07716.61
5.4.30.0030.07316.52
5.4.20.0030.06316.49
5.4.10.0070.07016.47
5.4.00.0030.06015.77
5.3.290.0000.07714.90
5.3.280.0000.03714.46
5.3.270.0000.04014.56
5.3.260.0000.04314.56
5.3.250.0000.04014.74
5.3.240.0030.07314.61
5.3.230.0030.07314.61
5.3.220.0100.07014.57
5.3.210.0070.07714.60
5.3.200.0030.07314.70
5.3.190.0070.06714.60
5.3.180.0100.06714.57
5.3.170.0130.06714.65
5.3.160.0070.06314.54
5.3.150.0030.07714.59
5.3.140.0070.07014.80
5.3.130.0070.07714.68
5.3.120.0030.06714.53
5.3.110.0100.06714.54
5.3.100.0070.03714.18
5.3.90.0070.06314.04
5.3.80.0030.04014.15
5.3.70.0070.03313.89
5.3.60.0030.03714.09
5.3.50.0000.03714.00
5.3.40.0100.04013.96
5.3.30.0000.04313.90
5.3.20.0000.03713.68
5.3.10.0030.03313.67
5.3.00.0000.03713.78
5.2.170.0030.06311.21
5.2.160.0000.03311.18
5.2.150.0070.02311.20
5.2.140.0000.03011.04
5.2.130.0030.02710.99
5.2.120.0030.02311.11
5.2.110.0000.03011.09
5.2.100.0070.02311.05
5.2.90.0000.03011.26
5.2.80.0000.03010.98
5.2.70.0000.02711.03
5.2.60.0070.02010.95
5.2.50.0000.03011.04
5.2.40.0000.03010.99
5.2.30.0030.02710.89
5.2.20.0000.02310.96
5.2.10.0030.02310.86
5.2.00.0000.03010.71
5.1.60.0000.0439.98
5.1.50.0000.0409.98
5.1.40.0030.02010.03
5.1.30.0030.03310.24
5.1.20.0070.03710.24
5.1.10.0000.0379.98
5.1.00.0030.0409.98
5.0.50.0030.0339.98
5.0.40.0000.0209.98
5.0.30.0000.0309.98
5.0.20.0000.0339.98
5.0.10.0070.0139.98
5.0.00.0000.0309.98
4.4.90.0000.0139.98
4.4.80.0000.0139.98
4.4.70.0030.0179.98
4.4.60.0030.0139.98
4.4.50.0000.0179.98
4.4.40.0070.0179.98
4.4.30.0030.0139.98
4.4.20.0000.0309.98
4.4.10.0000.0339.98
4.4.00.0000.0279.98
4.3.110.0000.0309.98
4.3.100.0000.0139.98
4.3.90.0000.0139.98
4.3.80.0000.0239.98
4.3.70.0000.0139.98
4.3.60.0000.0139.98
4.3.50.0030.0179.98
4.3.40.0000.0239.98
4.3.30.0000.0139.98
4.3.20.0000.0209.98
4.3.10.0030.0139.98
4.3.00.0000.0139.98

preferences:
46.46 ms | 401 KiB | 5 Q