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 (&$index, $badPorts) { if(!in_array($item['portName'], $badPorts)) $result[$index] = $item['portName']; $index++; return $result; }));

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.0110.00418.71
8.3.30.0080.00818.90
8.3.20.0040.00418.72
8.3.10.0080.00021.07
8.3.00.0040.00421.94
8.2.170.0140.00722.96
8.2.160.0130.00620.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00021.07
8.2.110.0100.00020.43
8.2.100.0080.00417.84
8.2.90.0040.00419.26
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0040.00421.21
8.2.20.0070.00017.71
8.2.10.0070.00017.66
8.2.00.0000.00717.67
8.1.270.0080.00023.99
8.1.260.0100.01026.35
8.1.250.0050.00328.09
8.1.240.0000.00822.06
8.1.230.0080.00417.42
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0000.00917.48
8.1.190.0040.00417.40
8.1.180.0060.00318.10
8.1.170.0050.00318.59
8.1.160.0040.00418.91
8.1.150.0040.00418.65
8.1.140.0000.00717.51
8.1.130.0070.00017.81
8.1.120.0040.00417.45
8.1.110.0040.00417.37
8.1.100.0070.00017.47
8.1.90.0040.00417.34
8.1.80.0000.00717.36
8.1.70.0030.00317.41
8.1.60.0050.00317.53
8.1.50.0060.00317.54
8.1.40.0050.00317.59
8.1.30.0000.00717.62
8.1.20.0040.00417.64
8.1.10.0050.00317.61
8.1.00.0000.00817.53
8.0.300.0040.00418.77
8.0.290.0050.00216.60
8.0.280.0030.00318.39
8.0.270.0000.00717.18
8.0.260.0030.00616.74
8.0.250.0040.00416.98
8.0.240.0060.00316.92
8.0.230.0040.00416.86
8.0.220.0040.00416.82
8.0.210.0030.00316.78
8.0.200.0000.00616.82
8.0.190.0070.00016.92
8.0.180.0030.00616.88
8.0.170.0030.00516.91
8.0.160.0080.00016.91
8.0.150.0030.00316.79
8.0.140.0000.00716.84
8.0.130.0040.00413.31
8.0.120.0040.00416.89
8.0.110.0000.00816.76
8.0.100.0000.00716.86
8.0.90.0050.00316.76
8.0.80.0060.01016.77
8.0.70.0030.00316.71
8.0.60.0030.00516.90
8.0.50.0000.00716.96
8.0.30.0130.00917.16
8.0.20.0120.00617.40
8.0.10.0040.00416.96
8.0.00.0120.01016.74
7.4.330.0000.00514.88
7.4.320.0030.00316.61
7.4.300.0030.00316.57
7.4.290.0060.00316.51
7.4.280.0060.00316.35
7.4.270.0070.00016.52
7.4.260.0070.00013.36
7.4.250.0070.00016.57
7.4.240.0000.00716.58
7.4.230.0030.00316.67
7.4.220.0060.01216.45
7.4.210.0060.01216.60
7.4.200.0050.00216.58
7.4.190.0030.00616.45
7.4.160.0160.00016.41
7.4.150.0100.00717.40
7.4.140.0070.01217.86
7.4.130.0140.00316.48
7.4.120.0110.00716.47
7.4.110.0070.00916.49
7.4.100.0150.00916.51
7.4.90.0120.01316.45
7.4.80.0100.00719.39
7.4.70.0030.01316.27
7.4.60.0110.00616.33
7.4.50.0080.00016.39
7.4.40.0040.01522.77
7.4.30.0130.00316.59
7.4.10.0090.00916.23
7.4.00.0060.01115.67
7.3.330.0020.00213.34
7.3.320.0020.00213.38
7.3.310.0040.00416.38
7.3.300.0030.00316.23
7.3.290.0070.00716.41
7.3.280.0100.00516.33
7.3.270.0160.00317.40
7.3.260.0110.00618.24
7.3.250.0080.01016.55
7.3.240.0100.01016.48
7.3.230.0160.00016.59
7.3.210.0070.01116.46
7.3.200.0140.00319.39
7.3.190.0190.00016.59
7.3.180.0090.00916.49
7.3.170.0070.01116.49
7.3.160.0030.01316.46
7.3.130.0070.01016.27
7.3.120.0090.00615.45
7.3.110.0070.00715.60
7.3.100.0110.00515.59
7.3.90.0020.01015.76
7.3.80.0030.01015.67
7.3.70.0050.00915.63
7.3.60.0060.00615.54
7.3.50.0050.00915.68
7.3.40.0040.00615.69
7.3.30.0030.00815.44
7.3.20.0100.00317.38
7.3.10.0070.00717.04
7.3.00.0070.00716.93
7.2.330.0110.00916.45
7.2.320.0060.01616.61
7.2.310.0140.01016.75
7.2.300.0080.01116.74
7.2.290.0030.01316.73
7.2.260.0090.00916.73
7.2.250.0080.00915.82
7.2.240.0100.00715.88
7.2.230.0060.01215.68
7.2.220.0030.00915.88
7.2.210.0030.01115.51
7.2.200.0050.01115.85
7.2.190.0030.01315.71
7.2.180.0050.00915.84
7.2.170.0050.00815.73
7.2.160.0070.00316.69
7.2.150.0090.00918.51
7.2.140.0070.01118.35
7.2.130.0050.00917.50
7.2.120.0070.00817.33
7.2.110.0080.00517.41
7.2.100.0070.00717.44
7.2.90.0050.01017.43
7.2.80.0070.00717.21
7.2.70.0060.00717.48
7.2.60.0080.00517.30
7.2.50.0020.00917.36
7.2.40.0070.00817.44
7.2.30.0050.00717.43
7.2.20.0030.01017.44
7.2.10.0060.00817.31
7.2.00.0060.00817.88
7.1.330.0030.01216.60
7.1.320.0030.00716.73
7.1.310.0050.01016.57
7.1.300.0020.01016.58
7.1.290.0040.01016.38
7.1.280.0060.00816.68
7.1.270.0080.00616.59
7.1.260.0020.01316.60
7.1.250.0030.00816.25
7.1.240.0030.00617.31
7.1.230.0040.01117.31
7.1.220.0000.00917.42
7.1.210.0070.00717.36
7.1.200.0030.00916.64
7.1.190.0070.00717.41
7.1.180.0000.01717.41
7.1.170.0000.01217.28
7.1.160.0000.00917.23
7.1.150.0100.00317.28
7.1.140.0090.00917.39
7.1.130.0000.01417.25
7.1.120.0090.00317.37
7.1.110.0070.01017.48
7.1.100.0090.00317.88
7.1.90.0110.00417.38
7.1.80.0090.00317.32
7.1.70.0080.00117.23
7.1.60.0130.00718.36
7.1.50.0100.01017.26
7.1.40.0070.00717.39
7.1.30.0070.00717.39
7.1.20.0090.00317.29
7.1.10.0040.01117.34
7.1.00.0020.04219.87
7.0.330.0070.00717.11
7.0.320.0000.01016.94
7.0.310.0000.01217.05
7.0.300.0000.01217.11
7.0.290.0030.00717.08
7.0.280.0030.00917.00
7.0.270.0030.00617.09
7.0.260.0110.00417.01
7.0.250.0040.01217.31
7.0.240.0000.01217.03
7.0.230.0060.00917.17
7.0.220.0100.00317.13
7.0.210.0030.01117.01
7.0.200.0040.00916.87
7.0.190.0060.00317.16
7.0.180.0030.00917.07
7.0.170.0110.00017.04
7.0.160.0080.00817.25
7.0.150.0060.00917.05
7.0.140.0030.04319.58
7.0.130.0060.00616.97
7.0.120.0030.01016.99
7.0.110.0000.01016.92
7.0.100.0100.00316.93
7.0.90.0080.00017.00
7.0.80.0030.01016.98
7.0.70.0030.03819.29
7.0.60.0100.04219.44
7.0.50.0050.04319.59
7.0.40.0040.04417.61
7.0.30.0050.04717.60
7.0.20.0030.03317.61
7.0.10.0070.03917.58
7.0.00.0050.02717.60
5.6.400.0100.00615.89
5.6.390.0060.01015.98
5.6.380.0000.01215.72
5.6.370.0050.00515.66
5.6.360.0000.01015.82
5.6.350.0050.00515.94
5.6.340.0070.01015.71
5.6.330.0040.00815.98
5.6.320.0030.00616.22
5.6.310.0000.01516.11
5.6.300.0080.00416.04
5.6.290.0070.00315.68
5.6.280.0080.03818.38
5.6.270.0030.00616.26
5.6.260.0070.00716.27
5.6.250.0070.01016.00
5.6.240.0000.00915.57
5.6.230.0060.00315.88
5.6.220.0030.04718.27
5.6.210.0030.04618.31
5.6.200.0050.04718.54
5.6.190.0080.04318.49
5.6.180.0050.03918.51
5.6.170.0070.04418.47
5.6.160.0060.02518.40
5.6.150.0050.04418.42
5.6.140.0060.04218.56
5.6.130.0000.05018.45
5.6.120.0040.04118.50
5.6.110.0050.02518.43
5.6.100.0110.03418.55
5.6.90.0090.03518.54
5.6.80.0030.03618.15
5.6.70.0060.03918.06
5.6.60.0000.04518.08
5.6.50.0050.04518.21
5.6.40.0020.04118.07
5.6.30.0070.03818.10
5.6.20.0030.04517.90
5.6.10.0050.03718.11
5.6.00.0070.04118.10
5.5.380.0040.00815.83
5.5.370.0060.00915.75
5.5.360.0070.04018.03
5.5.350.0120.04018.16
5.5.340.0030.04818.27
5.5.330.0010.04618.23
5.5.320.0050.04518.39
5.5.310.0060.04318.41
5.5.300.0030.04018.29
5.5.290.0060.04318.23
5.5.280.0050.04318.47
5.5.270.0030.03518.05
5.5.260.0050.04718.27
5.5.250.0020.03518.27
5.5.240.0080.03918.00
5.5.230.0080.03717.99
5.5.220.0020.04517.90
5.5.210.0020.04718.04
5.5.200.0020.04317.96
5.5.190.0030.04318.13
5.5.180.0070.04418.06
5.5.170.0000.01215.72
5.5.160.0030.04917.85
5.5.150.0080.03317.96
5.5.140.0060.04017.91
5.5.130.0050.04318.05
5.5.120.0020.03717.95
5.5.110.0060.04217.97
5.5.100.0050.04318.04
5.5.90.0020.04217.82
5.5.80.0050.03817.99
5.5.70.0100.04017.99
5.5.60.0050.03718.02
5.5.50.0100.03817.95
5.5.40.0050.03817.97
5.5.30.0100.03517.95
5.5.20.0080.04317.86
5.5.10.0050.04517.78
5.5.00.0070.03818.01
5.4.450.0060.03015.99
5.4.440.0050.03616.12
5.4.430.0050.04115.91
5.4.420.0090.03715.95
5.4.410.0070.04015.93
5.4.400.0020.03915.95
5.4.390.0100.02515.81
5.4.380.0050.02815.70
5.4.370.0020.04315.76
5.4.360.0060.04115.86
5.4.350.0060.04015.88
5.4.340.0050.03815.83
5.4.330.0000.00912.65
5.4.320.0000.04215.83
5.4.310.0080.04015.68
5.4.300.0050.04415.84
5.4.290.0060.03915.78
5.4.280.0100.03515.84
5.4.270.0030.04215.67
5.4.260.0020.03815.92
5.4.250.0050.03815.86
5.4.240.0080.03615.95
5.4.230.0020.04816.01
5.4.220.0080.03215.84
5.4.210.0070.03815.80
5.4.200.0020.04215.95
5.4.190.0070.02815.93
5.4.180.0100.03315.88
5.4.170.0110.03516.06
5.4.160.0030.04615.80
5.4.150.0070.02815.83
5.4.140.0040.03814.54
5.4.130.0030.03814.38
5.4.120.0080.03214.41
5.4.110.0080.03614.49
5.4.100.0040.03114.54
5.4.90.0050.03714.66
5.4.80.0070.03314.46
5.4.70.0050.03714.55
5.4.60.0030.03814.63
5.4.50.0020.03514.53
5.4.40.0050.04114.59
5.4.30.0020.04014.48
5.4.20.0020.03514.48
5.4.10.0070.03814.62
5.4.00.0030.04314.06
5.3.290.0050.04013.95
5.3.280.0030.03813.96
5.3.270.0020.03913.94
5.3.260.0050.04313.86
5.3.250.0020.03813.88
5.3.240.0030.04113.98
5.3.230.0030.04113.88
5.3.220.0070.03813.74
5.3.210.0040.02713.98
5.3.200.0050.03313.93
5.3.190.0060.03813.78
5.3.180.0030.03313.83
5.3.170.0050.04013.89
5.3.160.0060.03813.90
5.3.150.0060.03613.84
5.3.140.0020.04113.98
5.3.130.0020.04113.89
5.3.120.0050.03813.81
5.3.110.0030.04513.80
5.3.100.0060.03913.62
5.3.90.0030.04113.56
5.3.80.0010.03313.53
5.3.70.0030.03913.55
5.3.60.0050.03113.51
5.3.50.0050.02713.54
5.3.40.0030.04013.43
5.3.30.0030.03113.45
5.3.20.0020.03913.31
5.3.10.0070.01813.29
5.3.00.0010.02113.19
5.2.170.0000.06711.11
5.2.160.0000.05711.11
5.2.150.0000.05011.11
5.2.140.0030.03711.16
5.2.130.0000.04711.11
5.2.120.0000.03711.17
5.2.110.0030.05011.11
5.2.100.0000.05311.11
5.2.90.0000.06311.17
5.2.80.0030.03311.11
5.2.70.0030.06011.11
5.2.60.0000.04011.11
5.2.50.0000.05711.11
5.2.40.0000.03311.11
5.2.30.0070.05711.11
5.2.20.0030.06011.11
5.2.10.0000.06311.11
5.2.00.0070.04311.11
5.1.60.0030.04011.11
5.1.50.0000.03311.11
5.1.40.0130.04711.11
5.1.30.0000.03011.11
5.1.20.0030.04311.11
5.1.10.0070.04311.11
5.1.00.0030.04311.11
5.0.50.0000.04011.11
5.0.40.0000.04311.11
5.0.30.0030.05011.11
5.0.20.0000.04711.11
5.0.10.0000.04011.11
5.0.00.0000.05011.11
4.4.90.0000.03011.11
4.4.80.0030.02011.11
4.4.70.0030.03011.11
4.4.60.0030.02711.11
4.4.50.0070.02311.11
4.4.40.0030.04311.11
4.4.30.0000.02011.11
4.4.20.0000.02711.11
4.4.10.0000.03311.11
4.4.00.0030.03011.11
4.3.110.0030.03311.11
4.3.100.0000.03711.11
4.3.90.0070.03011.11
4.3.80.0030.04311.11
4.3.70.0000.03311.11
4.3.60.0000.03711.11
4.3.50.0030.03311.11
4.3.40.0030.04711.11
4.3.30.0030.03011.11
4.3.20.0000.03711.11
4.3.10.0000.03711.11
4.3.00.0000.03711.11

preferences:
42.86 ms | 400 KiB | 5 Q