3v4l.org

run code in 500+ PHP versions simultaneously
<?php function pulisci_array48mom(array $input): array { return array_filter($input, function ($entry) { return is_int($entry[0]) && is_double($entry[1]) && is_double($entry[2]) && is_numeric($entry[3]) && is_numeric($entry[4]) && is_string($entry[5]) && is_int($entry[6]); }); } $input = pulisci_array48mom([ [1530270934000, 19.4034, -155.2675, 3, 1, 'E', 612], ['1530270934000', 19.4034, -155.2675, 3, 2, 'E', 612], [1530270934000, 19.4034, -155.2675, 3, 3, 'E', 612], ]); print_r($input);
Output for 8.6.0
Deprecated: Function is_double() is deprecated since 8.6, use is_float() instead in /in/vccgY on line 6 Deprecated: Function is_double() is deprecated since 8.6, use is_float() instead in /in/vccgY on line 7 Deprecated: Function is_double() is deprecated since 8.6, use is_float() instead in /in/vccgY on line 6 Deprecated: Function is_double() is deprecated since 8.6, use is_float() instead in /in/vccgY on line 7 Array ( [0] => Array ( [0] => 1530270934000 [1] => 19.4034 [2] => -155.2675 [3] => 3 [4] => 1 [5] => E [6] => 612 ) [2] => Array ( [0] => 1530270934000 [1] => 19.4034 [2] => -155.2675 [3] => 3 [4] => 3 [5] => E [6] => 612 ) )
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.13
Array ( [0] => Array ( [0] => 1530270934000 [1] => 19.4034 [2] => -155.2675 [3] => 3 [4] => 1 [5] => E [6] => 612 ) [2] => Array ( [0] => 1530270934000 [1] => 19.4034 [2] => -155.2675 [3] => 3 [4] => 3 [5] => E [6] => 612 ) )

preferences:
17.44 ms | 1169 KiB | 6 Q