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) use ($badPorts, &$index){ if(!in_array($item['portName'], $badPorts)) $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.0110.00318.43
8.3.50.0060.01022.13
8.3.40.0090.00618.65
8.3.30.0120.00619.27
8.3.20.0040.00420.34
8.3.10.0070.00022.05
8.3.00.0050.00322.34
8.2.180.0070.00716.63
8.2.170.0140.00022.96
8.2.160.0100.01020.92
8.2.150.0040.00424.18
8.2.140.0030.01324.66
8.2.130.0040.00426.16
8.2.120.0070.00319.36
8.2.110.0060.00322.12
8.2.100.0030.00817.78
8.2.90.0040.00419.04
8.2.80.0100.00217.97
8.2.70.0000.00817.63
8.2.60.0000.00718.05
8.2.50.0060.00318.07
8.2.40.0000.00918.22
8.2.30.0000.00718.15
8.2.20.0040.00417.81
8.2.10.0030.00619.41
8.2.00.0000.00817.69
8.1.280.0070.01425.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01023.89
8.1.230.0070.00319.15
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0050.00317.53
8.1.180.0080.00018.10
8.1.170.0000.00918.61
8.1.160.0040.00421.98
8.1.150.0100.00018.52
8.1.140.0040.00417.37
8.1.130.0030.00317.89
8.1.120.0000.00817.38
8.1.110.0000.00717.45
8.1.100.0080.00017.44
8.1.90.0040.00417.51
8.1.80.0070.00017.50
8.1.70.0000.00717.40
8.1.60.0060.00317.61
8.1.50.0040.00417.52
8.1.40.0070.00017.60
8.1.30.0030.00617.60
8.1.20.0000.00817.61
8.1.10.0040.00417.45
8.1.00.0040.00417.57
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0020.00518.45
8.0.270.0070.00017.21
8.0.260.0030.00316.78
8.0.250.0030.00416.86
8.0.240.0070.00016.83
8.0.230.0000.00716.86
8.0.220.0030.00316.91
8.0.210.0040.00416.91
8.0.200.0060.00016.89
8.0.190.0000.00716.91
8.0.180.0040.00416.99
8.0.170.0040.00416.93
8.0.160.0040.00416.80
8.0.150.0000.00716.96
8.0.140.0040.00316.77
8.0.130.0050.00013.31
8.0.120.0000.00816.73
8.0.110.0070.00016.80
8.0.100.0040.00416.86
8.0.90.0040.00416.88
8.0.80.0030.01716.90
8.0.70.0000.00816.75
8.0.60.0000.00716.88
8.0.50.0050.00216.89
8.0.30.0140.00617.05
8.0.20.0100.00917.40
8.0.10.0000.00716.87
8.0.00.0120.01116.90
7.4.330.0050.00015.15
7.4.320.0040.00416.59
7.4.300.0000.00616.61
7.4.290.0030.00316.57
7.4.280.0050.00316.63
7.4.270.0030.00316.60
7.4.260.0040.00416.45
7.4.250.0000.00716.54
7.4.240.0000.00716.50
7.4.230.0000.00716.54
7.4.220.0100.00916.71
7.4.210.0070.01016.57
7.4.200.0040.00316.67
7.4.190.0030.00316.37
7.4.160.0090.00616.31
7.4.150.0100.01317.40
7.4.140.0110.00617.86
7.4.130.0050.01116.48
7.4.120.0150.00516.57
7.4.110.0140.01016.44
7.4.100.0110.00716.60
7.4.90.0200.00316.57
7.4.80.0030.01216.45
7.4.70.0120.00416.35
7.4.60.0000.01616.48
7.4.50.0020.00216.52
7.4.40.0140.00422.77
7.4.30.0070.01016.64
7.4.00.0080.01015.08
7.3.330.0030.00213.34
7.3.320.0030.00313.14
7.3.310.0060.00016.39
7.3.300.0070.00016.27
7.3.290.0080.00816.36
7.3.280.0070.01316.27
7.3.270.0060.01017.40
7.3.260.0100.00716.52
7.3.250.0130.00516.49
7.3.240.0120.00316.36
7.3.230.0070.01116.39
7.3.210.0000.01716.48
7.3.200.0130.00919.39
7.3.190.0140.00316.33
7.3.180.0070.01016.28
7.3.170.0090.00616.39
7.3.160.0150.00616.48
7.3.120.0070.00814.81
7.3.110.0130.00314.99
7.3.100.0090.00514.95
7.3.90.0050.01014.86
7.3.80.0070.00814.86
7.3.70.0070.00614.87
7.3.60.0070.00614.71
7.3.50.0030.00914.87
7.3.40.0060.00414.79
7.3.30.0050.00814.55
7.3.20.0050.00716.64
7.3.10.0060.00816.58
7.3.00.0070.00716.72
7.2.330.0110.00716.47
7.2.320.0120.00616.74
7.2.310.0120.00916.44
7.2.300.0170.00716.36
7.2.290.0030.01416.79
7.2.250.0140.00315.23
7.2.240.0080.01115.05
7.2.230.0030.01215.12
7.2.220.0080.01014.95
7.2.210.0030.01014.80
7.2.200.0050.01015.13
7.2.190.0080.00814.99
7.2.180.0020.01315.13
7.2.170.0090.00415.02
7.2.160.0030.01314.87
7.2.150.0090.00616.81
7.2.140.0070.01116.92
7.2.130.0050.00516.82
7.2.120.0130.00317.04
7.2.110.0070.01116.53
7.2.100.0060.01017.04
7.2.90.0040.01116.90
7.2.80.0150.00616.92
7.2.70.0100.01016.79
7.2.60.0000.01316.85
7.2.50.0070.01017.07
7.2.40.0060.00917.16
7.2.30.0070.00717.03
7.2.20.0000.01616.76
7.2.10.0040.01516.84
7.2.00.0060.00917.99
7.1.330.0100.00515.80
7.1.320.0060.00715.80
7.1.310.0070.00715.71
7.1.300.0080.00515.90
7.1.290.0050.00715.71
7.1.280.0050.00515.71
7.1.270.0060.00715.59
7.1.260.0080.00715.68
7.1.250.0030.01015.88
7.1.100.0060.00618.27
7.1.70.0000.00716.87
7.1.60.0070.01419.82
7.1.50.0110.01116.89
7.1.00.0070.07322.41
7.0.200.0040.00716.64
7.0.140.0070.07022.05
7.0.100.0100.06020.03
7.0.90.0070.05019.90
7.0.80.0100.04319.98
7.0.70.0030.08019.93
7.0.60.0270.06319.88
7.0.50.0170.07720.24
7.0.40.0130.07320.07
7.0.30.0130.06720.18
7.0.20.0070.08320.04
7.0.10.0100.08320.13
7.0.00.0100.08020.09
5.6.280.0100.06721.08
5.6.250.0030.08020.54
5.6.240.0100.07720.64
5.6.230.0030.07020.50
5.6.220.0170.07320.58
5.6.210.0070.04720.65
5.6.200.0100.07720.96
5.6.190.0030.09021.09
5.6.180.0030.05321.08
5.6.170.0070.04721.07
5.6.160.0070.04021.04
5.6.150.0070.04320.94
5.6.140.0130.04721.07
5.6.130.0100.05321.05
5.6.120.0030.09021.11
5.6.110.0070.08021.10
5.6.100.0070.07320.95
5.6.90.0100.07320.98
5.6.80.0070.06720.39
5.6.70.0030.04720.40
5.6.60.0100.07320.39
5.6.50.0070.04320.39
5.6.40.0100.03720.30
5.6.30.0270.06320.53
5.6.20.0070.08020.45
5.6.10.0100.08020.38
5.6.00.0030.05020.41
5.5.380.0070.04020.42
5.5.370.0030.04720.46
5.5.360.0100.06320.54
5.5.350.0030.05020.48
5.5.340.0100.04720.92
5.5.330.0070.06320.80
5.5.320.0100.06720.88
5.5.310.0130.06720.89
5.5.300.0070.07020.82
5.5.290.0030.04320.80
5.5.280.0130.07320.84
5.5.270.0030.05320.75
5.5.260.0200.06720.88
5.5.250.0030.07720.73
5.5.240.0000.08020.07
5.5.230.0170.05720.17
5.5.220.0000.07720.24
5.5.210.0170.06720.21
5.5.200.0030.06320.09
5.5.190.0100.04320.12
5.5.180.0100.06020.23
5.5.160.0100.06720.24
5.5.150.0070.07020.18
5.5.140.0000.05020.18
5.5.130.0030.04320.08
5.5.120.0100.07320.28
5.5.110.0070.07720.23
5.5.100.0070.06720.13
5.5.90.0000.06720.04
5.5.80.0130.06320.07
5.5.70.0100.07020.09
5.5.60.0070.04720.02
5.5.50.0070.07020.16
5.5.40.0030.06320.16
5.5.30.0030.04320.04
5.5.20.0030.04720.12
5.5.10.0070.07720.00
5.5.00.0070.05019.96
5.4.450.0100.06019.36
5.4.440.0100.05319.35
5.4.430.0100.06319.34
5.4.420.0070.04319.45
5.4.410.0030.07319.32
5.4.400.0070.04019.21
5.4.390.0070.09019.23
5.4.380.0130.07319.13
5.4.370.0100.05319.23
5.4.360.0000.06018.88
5.4.350.0100.04318.87
5.4.340.0100.06719.20
5.4.320.0070.06019.14
5.4.310.0030.05319.23
5.4.300.0130.06019.15
5.4.290.0030.04019.20
5.4.280.0100.06719.14
5.4.270.0100.05019.20
5.4.260.0000.05019.05
5.4.250.0030.04319.15
5.4.240.0030.04319.20
5.4.230.0170.07018.94
5.4.220.0070.05318.88
5.4.210.0030.06719.04
5.4.200.0000.04019.04
5.4.190.0130.06018.86
5.4.180.0070.07718.85
5.4.170.0100.07719.09
5.4.160.0000.04018.87
5.4.150.0030.05319.14
5.4.140.0000.04716.32
5.4.130.0100.07016.37
5.4.120.0070.04016.40
5.4.110.0100.04316.49
5.4.100.0130.03716.49
5.4.90.0100.06316.39
5.4.80.0070.06316.33
5.4.70.0070.07016.34
5.4.60.0030.05016.30
5.4.50.0030.04316.46
5.4.40.0000.07316.39
5.4.30.0030.06716.33
5.4.20.0100.04716.40
5.4.10.0070.04016.45
5.4.00.0070.03315.77
5.3.290.0030.04014.59
5.3.280.0070.03314.57
5.3.270.0070.03014.61
5.3.260.0030.07314.73
5.3.250.0000.07714.75
5.3.240.0130.06014.56
5.3.230.0070.06014.66
5.3.220.0070.05014.60
5.3.210.0070.07314.59
5.3.200.0030.04714.68
5.3.190.0100.05014.60
5.3.180.0000.04314.71
5.3.170.0130.05014.52
5.3.160.0070.04714.55
5.3.150.0070.05714.55
5.3.140.0030.05014.61
5.3.130.0070.07714.66
5.3.120.0030.06314.55
5.3.110.0070.05014.60
5.3.100.0130.03714.18
5.3.90.0130.07314.04
5.3.80.0030.04713.99
5.3.70.0030.04314.16
5.3.60.0130.06013.98
5.3.50.0100.07013.93
5.3.40.0030.07014.00
5.3.30.0030.07313.93
5.3.20.0030.06713.75
5.3.10.0070.06313.79
5.3.00.0030.07013.66
5.2.170.0100.05011.14
5.2.160.0030.03311.20
5.2.150.0070.06310.98
5.2.140.0070.03311.14
5.2.130.0100.03311.08
5.2.120.0070.03010.96
5.2.110.0000.03711.17
5.2.100.0070.06011.05
5.2.90.0000.04010.93
5.2.80.0070.03311.14
5.2.70.0000.05011.05
5.2.60.0070.04710.97
5.2.50.0170.05011.06
5.2.40.0100.05010.99
5.2.30.0170.05011.03
5.2.20.0100.05310.91
5.2.10.0030.06310.88
5.2.00.0100.02710.71
5.1.60.0100.04010.02
5.1.50.0000.04010.01
5.1.40.0000.0279.88
5.1.30.0070.03010.23
5.1.20.0070.03310.21
5.1.10.0000.05710.05
5.1.00.0100.03710.08
5.0.50.0070.0338.74
5.0.40.0030.0278.74
5.0.30.0070.0278.74
5.0.20.0000.0238.74
5.0.10.0000.0208.74
5.0.00.0000.0378.74
4.4.90.0030.0338.74
4.4.80.0000.0308.74
4.4.70.0000.0378.74
4.4.60.0000.0308.74
4.4.50.0070.0238.74
4.4.40.0030.0338.74
4.4.30.0000.0278.74
4.4.20.0030.0208.74
4.4.10.0070.0178.74
4.4.00.0070.0508.74
4.3.110.0030.0178.74
4.3.100.0030.0138.74
4.3.90.0070.0108.74
4.3.80.0070.0238.74
4.3.70.0030.0138.74
4.3.60.0030.0138.74
4.3.50.0000.0178.74
4.3.40.0000.0238.74
4.3.30.0000.0178.74
4.3.20.0000.0178.74
4.3.10.0000.0178.74
4.3.00.0000.0138.74

preferences:
45.89 ms | 401 KiB | 5 Q