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 = ''; $index = 0; $image .= implode(',', array_reduce($itinerary, function ($result, $item) use ($badPorts, &$index){ if(!in_array($item['portName'], $badPorts)) $result[$index] = $item['portName']; $index++; return $result; }, array())); var_dump($image); $image2 = ''; array_walk($image2, function($item, $index) use(&$image, &$index, $badPorts){ if(!in_array($item['portName'], $badPorts)) $result[$index] = $item['portName']; $index++; }); var_dump($image2);

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.0140.00716.63
8.3.50.0080.01021.99
8.3.40.0080.00818.63
8.3.30.0120.00318.79
8.3.20.0070.00020.24
8.3.10.0070.00023.69
8.3.00.0050.00319.13
8.2.180.0060.00918.42
8.2.170.0090.00922.96
8.2.160.0130.00020.47
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0060.00822.16
8.2.110.0060.00322.25
8.2.100.0120.00017.84
8.2.90.0030.00519.05
8.2.80.0030.00617.97
8.2.70.0030.00517.37
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0080.00018.09
8.2.30.0000.00817.93
8.2.20.0060.00317.48
8.2.10.0070.00017.99
8.2.00.0000.00817.62
8.1.280.0090.00925.92
8.1.270.0110.00722.09
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0040.00719.21
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0080.00017.39
8.1.180.0000.00818.10
8.1.170.0040.00418.61
8.1.160.0000.00721.95
8.1.150.0080.00018.43
8.1.140.0070.00017.34
8.1.130.0030.00517.64
8.1.120.0070.00017.25
8.1.110.0080.00017.26
8.1.100.0000.00717.22
8.1.90.0040.00417.26
8.1.80.0070.00017.37
8.1.70.0030.00317.27
8.1.60.0030.00517.49
8.1.50.0050.00317.38
8.1.40.0030.00517.30
8.1.30.0080.00017.48
8.1.20.0080.00017.51
8.1.10.0050.00217.29
8.1.00.0040.00417.19
8.0.300.0070.00018.77
8.0.290.0040.00417.04
8.0.280.0000.00718.28
8.0.270.0050.00317.18
8.0.260.0000.00716.65
8.0.250.0030.00316.86
8.0.240.0000.00716.77
8.0.230.0040.00416.90
8.0.220.0000.00716.87
8.0.210.0070.00016.71
8.0.200.0000.00716.78
8.0.190.0040.00416.91
8.0.180.0040.00416.75
8.0.170.0040.00416.86
8.0.160.0040.00416.72
8.0.150.0000.00816.86
8.0.140.0040.00416.70
8.0.130.0070.00013.25
8.0.120.0000.00716.72
8.0.110.0040.00416.73
8.0.100.0000.00816.68
8.0.90.0040.00416.66
8.0.80.0070.00716.79
8.0.70.0040.00416.66
8.0.60.0070.00016.79
8.0.50.0080.00016.89
8.0.30.0100.01317.01
8.0.20.0120.00617.40
8.0.10.0000.00916.95
8.0.00.0170.00316.73
7.4.330.0020.00215.00
7.4.320.0030.00316.36
7.4.300.0030.00316.47
7.4.290.0030.00316.46
7.4.280.0000.00716.50
7.4.270.0070.00016.33
7.4.260.0050.00216.38
7.4.250.0050.00216.36
7.4.240.0030.00316.45
7.4.230.0040.00416.47
7.4.220.0150.00316.36
7.4.210.0090.00716.48
7.4.200.0050.00216.13
7.4.190.0080.00016.34
7.4.160.0110.00716.52
7.4.150.0060.01217.40
7.4.140.0080.00817.86
7.4.130.0110.00716.27
7.4.120.0080.01016.42
7.4.110.0000.01716.33
7.4.100.0040.01416.52
7.4.90.0110.00516.49
7.4.80.0070.01119.39
7.4.70.0090.01216.27
7.4.60.0090.00616.43
7.4.50.0050.00316.29
7.4.40.0080.00822.77
7.4.30.0030.01416.29
7.4.00.0070.01015.13
7.3.330.0000.00813.32
7.3.320.0000.00513.27
7.3.310.0050.00216.23
7.3.300.0000.00716.26
7.3.290.0120.00616.22
7.3.280.0090.00816.26
7.3.270.0100.00717.40
7.3.260.0070.01016.37
7.3.250.0100.00916.36
7.3.240.0140.00916.41
7.3.230.0110.00616.39
7.3.210.0140.00416.29
7.3.200.0210.00019.39
7.3.190.0090.01316.25
7.3.180.0060.01016.21
7.3.170.0090.00616.43
7.3.160.0090.00616.36
7.3.120.0070.00714.64
7.3.10.0060.00616.37
7.3.00.0050.00516.56
7.2.330.0100.00616.22
7.2.320.0150.00916.30
7.2.310.0070.01016.58
7.2.300.0060.01116.43
7.2.290.0110.00516.51
7.2.130.0120.00316.82
7.2.120.0070.00316.80
7.2.110.0090.00316.76
7.2.100.0100.00716.85
7.2.90.0060.00316.39
7.2.80.0140.00016.74
7.2.70.0040.01416.74
7.2.60.0030.01216.64
7.2.50.0030.00716.68
7.2.40.0070.00716.84
7.2.30.0100.00016.95
7.2.20.0070.00616.54
7.2.10.0100.00316.76
7.2.00.0060.01017.78
7.1.250.0040.01115.50
7.1.200.0030.00615.55
7.1.100.0200.00317.89
7.1.70.0050.00316.97
7.1.60.0100.01319.33
7.1.50.0110.01416.80
7.1.00.0030.07722.29
7.0.200.0080.00816.85
7.0.140.0030.07321.99
7.0.60.0070.07019.89
7.0.50.0100.07317.93
7.0.40.0100.07720.21
7.0.30.0530.07320.20
7.0.20.0400.07020.15
7.0.10.0100.06320.24
7.0.00.0100.08020.33
5.6.280.0070.07020.99
5.6.210.0070.07020.54
5.6.200.0070.08318.14
5.6.190.0100.08720.47
5.6.180.0230.08020.64
5.6.170.0330.04020.39
5.6.160.0100.03720.52
5.6.150.0030.08718.16
5.6.140.0130.07318.16
5.6.130.0070.05318.21
5.6.120.0000.04321.01
5.6.110.0170.08021.12
5.6.100.0070.08321.03
5.6.90.0130.08021.03
5.6.80.0130.03020.49
5.6.70.4400.03720.47
5.5.350.0000.04720.45
5.5.340.0100.07717.99
5.5.330.0070.04320.36
5.5.320.0300.07320.42
5.5.310.0300.07020.25
5.5.300.0100.07717.95
5.5.290.0100.07718.03
5.5.280.0030.04020.98
5.5.270.0070.08320.68
5.5.260.0030.08020.98
5.5.250.0070.04320.59
5.5.240.0070.08020.38
5.4.450.0370.06319.55
5.4.440.0230.04319.18
5.4.430.0270.07719.57
5.4.420.0300.04719.52
5.4.410.0270.04019.27
5.4.400.0230.07718.99
5.4.390.0230.03719.16
5.4.380.0270.05019.08
5.4.370.0370.07019.24
5.4.360.0330.07019.09
5.4.350.0330.06719.24
5.4.340.0430.06318.87
5.4.320.0330.06719.14
5.4.310.0230.05019.07
5.4.300.0470.05719.09
5.4.290.0270.03719.06
5.4.280.0200.04018.99
5.4.270.0230.04719.06
5.4.260.0300.07018.85
5.4.250.0430.03718.94
5.4.240.0300.06719.18
5.4.230.0370.06719.05
5.4.220.0300.06719.30
5.4.210.0300.06018.97
5.4.200.0300.04319.00
5.4.190.0270.07018.94
5.4.180.0130.04319.30
5.4.170.0270.06719.00
5.4.160.0300.06319.13
5.4.150.0330.04319.07
5.4.140.0200.04316.31
5.4.130.0230.04316.35
5.4.120.0330.05316.35
5.4.110.0300.04716.45
5.4.100.0270.03716.27
5.4.90.0370.05316.37
5.4.80.0270.05716.36
5.4.70.0300.06316.44
5.4.60.0270.04016.43
5.4.50.0200.04016.43
5.4.40.0400.02716.52
5.4.30.0200.03716.43
5.4.20.0300.06316.55
5.4.10.0200.04016.37
5.4.00.0230.06315.79
5.3.290.0270.04714.66
5.3.280.0400.05714.65
5.3.270.0270.03714.77
5.3.260.0370.05714.73
5.3.250.0200.04314.59
5.3.240.0200.04014.63
5.3.230.0470.05314.53
5.3.220.0270.04714.60
5.3.210.0370.06714.59
5.3.200.0270.04714.63
5.3.190.0400.06014.59
5.3.180.0270.07014.69
5.3.170.0230.03714.69
5.3.160.0330.04714.56
5.3.150.0270.04314.79
5.3.140.0200.04014.65
5.3.130.0170.05314.47
5.3.120.0370.03314.57
5.3.110.0270.04014.77
5.3.100.0130.04314.10
5.3.90.0230.03714.11
5.3.80.0370.05714.25
5.3.70.0370.06313.95
5.3.60.0370.06014.06
5.3.50.0230.05313.96
5.3.40.0230.07314.04
5.3.30.0230.03713.84
5.3.20.0270.04313.78
5.3.10.0300.07313.56
5.3.00.0330.06013.65
5.2.170.0200.03312.38
5.2.160.0130.04012.38
5.2.150.0230.02712.38
5.2.140.0170.03712.38
5.2.130.0300.05012.38
5.2.120.0230.03312.38
5.2.110.0270.04012.38
5.2.100.0300.05012.38
5.2.90.0170.03712.38
5.2.80.0300.04712.38
5.2.70.0300.05312.38
5.2.60.0270.03312.38
5.2.50.0270.06012.38
5.2.40.0200.05712.38
5.2.30.0230.06012.38
5.2.20.0200.05312.38
5.2.10.0230.05312.38
5.2.00.0200.05312.38
5.1.60.0330.02312.38
5.1.50.0230.04012.38
5.1.40.0200.02012.38
5.1.30.0200.04012.38
5.1.20.0270.05012.38
5.1.10.0330.04012.38
5.1.00.0270.05012.38
5.0.50.0100.02312.38
5.0.40.0170.03712.38
5.0.30.0070.05712.38
5.0.20.0100.02012.38
5.0.10.0130.04312.38
5.0.00.0070.04012.38
4.4.90.0100.02712.38
4.4.80.0100.02012.38
4.4.70.0130.03312.38
4.4.60.0100.03312.38
4.4.50.0100.02012.38
4.4.40.0130.04712.38
4.4.30.0070.02012.38
4.4.20.0100.03312.38
4.4.10.0130.02712.38
4.4.00.0170.04712.38
4.3.110.0100.03012.38
4.3.100.0100.03012.38
4.3.90.0130.03012.38
4.3.80.0130.05312.38
4.3.70.0100.03312.38
4.3.60.0100.02312.38
4.3.50.0070.03712.38
4.3.40.0130.03712.38
4.3.30.0070.03312.38
4.3.20.0030.03012.38
4.3.10.0030.02312.38
4.3.00.0030.02012.38

preferences:
42 ms | 401 KiB | 5 Q