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[$index] = $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.40.0140.00718.63
8.3.30.0140.00719.22
8.3.20.0090.00620.21
8.3.10.0060.00321.95
8.3.00.0040.00422.37
8.2.170.0100.01022.96
8.2.160.0170.00720.76
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00319.36
8.2.110.0100.00022.10
8.2.100.0080.00417.84
8.2.90.0000.00719.20
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00217.93
8.2.50.0030.00518.07
8.2.40.0040.00418.15
8.2.30.0040.00418.13
8.2.20.0070.00017.73
8.2.10.0000.00817.65
8.2.00.0080.00017.74
8.1.270.0050.00523.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.79
8.1.230.0000.01119.03
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0000.00917.38
8.1.190.0060.00317.54
8.1.180.0000.00818.10
8.1.170.0030.00618.59
8.1.160.0040.00422.03
8.1.150.0080.00418.57
8.1.140.0070.00017.45
8.1.130.0030.00317.84
8.1.120.0000.00717.42
8.1.110.0000.00717.38
8.1.100.0040.00417.49
8.1.90.0000.00717.38
8.1.80.0050.00317.40
8.1.70.0070.00017.34
8.1.60.0000.00817.59
8.1.50.0030.00617.51
8.1.40.0000.00717.46
8.1.30.0000.00817.52
8.1.20.0000.00817.70
8.1.10.0000.00717.57
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0040.00417.05
8.0.280.0040.00418.52
8.0.270.0000.00717.22
8.0.260.0000.00816.77
8.0.250.0000.01016.97
8.0.240.0000.00916.90
8.0.230.0030.00316.90
8.0.220.0000.00716.97
8.0.210.0040.00416.89
8.0.200.0030.00316.91
8.0.190.0050.00316.99
8.0.180.0050.00516.90
8.0.170.0090.00016.88
8.0.160.0000.00716.79
8.0.150.0040.00416.86
8.0.140.0030.00316.90
8.0.130.0030.00613.37
8.0.120.0000.00816.87
8.0.110.0070.00016.88
8.0.100.0000.00716.75
8.0.90.0070.00016.80
8.0.80.0060.01016.97
8.0.70.0020.00516.73
8.0.60.0050.00316.80
8.0.50.0040.00416.75
8.0.30.0070.01417.00
8.0.20.0120.00917.40
8.0.10.0000.00817.09
8.0.00.0260.01216.73
7.4.330.0050.00015.12
7.4.320.0000.00616.43
7.4.300.0030.00316.64
7.4.290.0050.00316.65
7.4.280.0030.00716.52
7.4.270.0030.00316.59
7.4.260.0030.00316.59
7.4.250.0080.00016.40
7.4.240.0060.00116.41
7.4.230.0040.00416.52
7.4.220.0090.00916.59
7.4.210.0110.00416.60
7.4.200.0040.00416.56
7.4.190.0030.00516.48
7.4.160.0030.01216.42
7.4.150.0090.00817.40
7.4.140.0100.01017.86
7.4.130.0070.01116.60
7.4.120.0080.00916.55
7.4.110.0120.00616.64
7.4.100.0070.01516.63
7.4.90.0120.00616.44
7.4.80.0100.01316.64
7.4.70.0000.01816.38
7.4.60.0060.00916.58
7.4.50.0080.00016.50
7.4.40.0060.00622.77
7.4.30.0030.01316.58
7.4.10.0030.01515.07
7.4.00.0100.00614.84
7.3.330.0000.00513.31
7.3.320.0050.00013.30
7.3.310.0030.00316.39
7.3.300.0070.00016.24
7.3.290.0060.00916.39
7.3.280.0120.00716.38
7.3.270.0130.00317.40
7.3.260.0130.01016.32
7.3.250.0080.01116.51
7.3.240.0110.01116.44
7.3.230.0000.02016.43
7.3.210.0140.00516.30
7.3.200.0190.00019.39
7.3.190.0090.00816.39
7.3.180.0060.00916.53
7.3.170.0140.00316.71
7.3.160.0060.01116.49
7.3.130.0060.01314.77
7.3.120.0070.00815.03
7.3.110.0130.00714.74
7.3.100.0100.00714.79
7.3.90.0000.01614.82
7.3.80.0000.01614.85
7.3.70.0000.01714.77
7.3.60.0000.01915.02
7.3.50.0070.01114.91
7.3.40.0070.00714.96
7.3.30.0070.00714.46
7.3.20.0060.00916.73
7.3.10.0000.01416.50
7.3.00.0070.01116.38
7.2.330.0130.00616.79
7.2.320.0130.01016.57
7.2.310.0110.00616.77
7.2.300.0150.00316.70
7.2.290.0070.01016.44
7.2.260.0120.00815.24
7.2.250.0070.00615.02
7.2.240.0120.00415.13
7.2.230.0180.00015.01
7.2.220.0070.01015.11
7.2.210.0040.00415.12
7.2.200.0090.00614.87
7.2.190.0070.00714.73
7.2.180.0090.00315.04
7.2.170.0000.01415.16
7.2.160.0030.01014.82
7.2.150.0060.00616.83
7.2.140.0140.00416.89
7.2.130.0060.00916.94
7.2.120.0030.00916.65
7.2.110.0060.00916.82
7.2.100.0090.00616.82
7.2.90.0060.00317.13
7.2.80.0030.00917.03
7.2.70.0120.00017.00
7.2.60.0030.00916.78
7.2.50.0100.00616.67
7.2.40.0060.00617.04
7.2.30.0030.00916.79
7.2.20.0070.00717.03
7.2.10.0070.00716.94
7.2.00.0060.00618.03
7.1.330.0030.00716.02
7.1.320.0040.00815.54
7.1.310.0080.00815.95
7.1.300.0060.01015.66
7.1.290.0030.01015.94
7.1.280.0000.01715.80
7.1.270.0100.00315.62
7.1.260.0070.00715.50
7.1.250.0030.01015.61
7.1.240.0030.00915.63
7.1.230.0090.00615.81
7.1.220.0090.00915.73
7.1.210.0030.01015.97
7.1.200.0030.01015.92
7.1.190.0070.00715.93
7.1.180.0150.00015.87
7.1.170.0000.00815.91
7.1.160.0030.01015.94
7.1.150.0070.00715.98
7.1.140.0070.00715.98
7.1.130.0070.00715.64
7.1.120.0070.00415.80
7.1.110.0040.01115.81
7.1.100.0020.00917.03
7.1.90.0030.00915.57
7.1.80.0060.00915.96
7.1.70.0040.00716.42
7.1.60.0060.01317.68
7.1.50.0070.01016.38
7.1.40.0060.00615.48
7.1.30.0040.01415.71
7.1.20.0040.01115.76
7.1.10.0110.00415.61
7.1.00.0070.04018.97
7.0.330.0040.00815.54
7.0.320.0080.00815.18
7.0.310.0110.00315.53
7.0.300.0070.00315.38
7.0.290.0070.00715.35
7.0.280.0050.00315.12
7.0.270.0000.01315.22
7.0.260.0070.00715.45
7.0.250.0030.00715.21
7.0.240.0030.01315.42
7.0.230.0030.00915.55
7.0.220.0110.00015.55
7.0.210.0000.01315.24
7.0.200.0060.00216.21
7.0.190.0040.00415.52
7.0.180.0000.01015.25
7.0.170.0030.01315.27
7.0.160.0030.01015.27
7.0.150.0040.00415.10
7.0.140.0070.03718.67
7.0.130.0040.00415.46
7.0.120.0070.00415.21
7.0.110.0070.00715.42
7.0.100.0040.00715.61
7.0.90.0030.01015.39
7.0.80.0030.00915.20
7.0.70.0060.00515.38
7.0.60.0060.03317.68
7.0.50.0030.04716.72
7.0.40.0030.05116.95
7.0.30.0200.03516.83
7.0.20.0160.04016.70
7.0.10.0080.03416.73
7.0.00.0080.03716.79
5.6.400.0000.01414.49
5.6.390.0000.01114.13
5.6.380.0000.01714.61
5.6.370.0060.00614.18
5.6.360.0040.00814.66
5.6.350.0060.00914.05
5.6.340.0060.00914.25
5.6.330.0060.00614.63
5.6.320.0040.00414.08
5.6.310.0120.00314.14
5.6.300.0070.00314.63
5.6.290.0000.01014.66
5.6.280.0050.04017.64
5.6.270.0000.00814.34
5.6.260.0070.00714.50
5.6.250.0030.00914.50
5.6.240.0090.00314.22
5.6.230.0030.00614.42
5.6.220.0090.00014.14
5.6.210.0070.03817.51
5.6.200.0070.02216.29
5.6.190.0060.03817.54
5.6.180.0130.03517.32
5.6.170.0150.04017.43
5.6.160.0120.04017.43
5.6.150.0020.03716.11
5.6.140.0060.04116.37
5.6.130.0020.04116.41
5.6.120.0050.04717.82
5.6.110.0080.04317.59
5.6.100.0080.04817.92
5.6.90.0060.04617.62
5.6.80.0130.04017.18
5.6.70.0030.01014.26
5.6.60.0100.00614.21
5.6.50.0030.01214.61
5.6.40.0030.00714.37
5.6.30.0060.00614.23
5.6.20.0100.00314.30
5.6.10.0060.00914.39
5.6.00.0090.00314.38
5.5.380.0080.00414.31
5.5.370.0030.00614.30
5.5.360.0060.00914.43
5.5.350.2150.02317.31
5.5.340.0090.04115.94
5.5.330.0120.03717.47
5.5.320.0200.04217.11
5.5.310.0170.04117.47
5.5.300.0070.04516.06
5.5.290.0070.04216.16
5.5.280.0080.02017.49
5.5.270.0090.03017.60
5.5.260.0050.05017.67
5.5.250.0100.03817.44
5.5.240.0210.03617.13
5.5.230.0030.00914.36
5.5.220.0050.00514.23
5.5.210.0060.00614.33
5.5.200.0040.00813.93
5.5.190.0030.00814.38
5.5.180.0040.00414.43
5.5.170.0030.00613.93
5.5.160.0030.00914.59
5.5.150.0040.00714.12
5.5.140.0070.01014.20
5.5.130.0030.01213.97
5.5.120.0030.00714.23
5.5.110.0060.00614.39
5.5.100.0080.00414.26
5.5.90.0040.01114.03
5.5.80.0030.01213.88
5.5.70.0070.00714.16
5.5.60.0040.01114.32
5.5.50.0060.00913.79
5.5.40.0100.00714.12
5.5.30.0090.00614.08
5.5.20.0090.00614.03
5.5.10.0030.01014.39
5.5.00.0110.00413.96
5.4.450.0130.02815.25
5.4.440.0190.03615.24
5.4.430.0120.03115.30
5.4.420.0180.02515.19
5.4.410.0160.02515.34
5.4.400.0180.03715.07
5.4.390.0150.03714.95
5.4.380.0170.03215.18
5.4.370.0170.02215.18
5.4.360.0200.03715.21
5.4.350.0170.02514.99
5.4.340.0180.02815.03
5.4.330.0030.00610.96
5.4.320.0150.03014.96
5.4.310.0150.01815.04
5.4.300.0170.01814.98
5.4.290.0060.02715.03
5.4.280.0120.02315.19
5.4.270.0150.02415.03
5.4.260.0100.02514.98
5.4.250.0170.02015.20
5.4.240.0150.02615.12
5.4.230.0160.02115.11
5.4.220.0150.02714.96
5.4.210.0140.02915.16
5.4.200.0190.02115.16
5.4.190.0130.02114.97
5.4.180.0130.02014.90
5.4.170.0150.02415.06
5.4.160.0130.02015.27
5.4.150.0180.02515.08
5.4.140.0120.02313.61
5.4.130.0160.01913.79
5.4.120.0180.02113.57
5.4.110.0150.02113.84
5.4.100.0170.01513.70
5.4.90.0140.02013.64
5.4.80.0160.01813.90
5.4.70.0170.02313.76
5.4.60.0170.01513.49
5.4.50.0130.02313.71
5.4.40.0170.02013.60
5.4.30.0110.02013.69
5.4.20.0130.02113.66
5.4.10.0130.02913.76
5.4.00.0150.01813.37
5.3.290.0170.01912.73
5.3.280.0120.02312.57
5.3.270.0150.02012.56
5.3.260.0170.02512.77
5.3.250.0140.02612.76
5.3.240.0160.01512.66
5.3.230.0100.02412.55
5.3.220.0310.01812.64
5.3.210.0120.02112.36
5.3.200.0180.01712.50
5.3.190.0140.02212.55
5.3.180.0190.02112.58
5.3.170.0170.01712.46
5.3.160.0170.01812.65
5.3.150.0100.02312.56
5.3.140.0140.02112.63
5.3.130.0110.02512.62
5.3.120.0180.02512.66
5.3.110.0120.02212.59
5.3.100.0100.02312.28
5.3.90.0130.02012.23
5.3.80.0130.02112.33
5.3.70.0150.02012.30
5.3.60.0110.02112.26
5.3.50.0130.02112.24
5.3.40.0150.01812.11
5.3.30.0150.01912.27
5.3.20.0120.02011.97
5.3.10.0130.02112.04
5.3.00.0100.02111.89
5.2.170.0270.03312.11
5.2.160.0170.03012.11
5.2.150.0230.03312.11
5.2.140.0200.04012.11
5.2.130.0200.02712.11
5.2.120.0230.02312.11
5.2.110.0200.03312.11
5.2.100.0200.03312.11
5.2.90.0200.04312.11
5.2.80.0330.04712.11
5.2.70.0200.04012.11
5.2.60.0130.04312.11
5.2.50.0170.04712.11
5.2.40.0200.05712.11
5.2.30.0230.02712.11
5.2.20.0130.03712.11
5.2.10.0200.03012.11
5.2.00.0200.05312.11
5.1.60.0200.02712.11
5.1.50.0130.05712.11
5.1.40.0170.05012.11
5.1.30.0230.04012.11
5.1.20.0300.04712.11
5.1.10.0170.05712.11
5.1.00.0170.03712.11
5.0.50.0130.04012.11
5.0.40.0070.03312.11
5.0.30.0100.05712.11
5.0.20.0170.02012.11
5.0.10.0070.02312.11
5.0.00.0100.03712.11
4.4.90.0070.01712.11
4.4.80.0100.01312.11
4.4.70.0070.01712.11
4.4.60.0070.01712.11
4.4.50.0070.01712.11
4.4.40.0070.03012.11
4.4.30.0070.02012.11
4.4.20.0100.01712.11
4.4.10.0100.01312.11
4.4.00.0100.02712.11
4.3.110.0170.03012.11
4.3.100.0300.00312.11
4.3.90.0170.03012.11
4.3.80.0100.03312.11
4.3.70.0070.04012.11
4.3.60.0100.02712.11
4.3.50.0070.02312.11
4.3.40.0170.04712.11
4.3.30.0070.03712.11
4.3.20.0100.03712.11
4.3.10.0030.03012.11
4.3.00.0030.03012.11

preferences:
40.78 ms | 400 KiB | 5 Q