<?php
$x = [array (
'timestamp' => 1505324820,
'dateTimeISO' => '2017-09-13T13:47:00-04:00',
'tempF' => 71,
'dewpointF' => 63,
'humidity' => 76,
'pressureMB' => 1012,
'altimeterMB' => 1013,
'windMPH' => 10,
'windSpeedMPH' => 10,
'windDirDEG' => 240,
'windGustMPH' => NULL,
'visibilityMI' => 10,
'weather' => 'Cloudy',
'weatherShort' => 'Cloudy',
'weatherCoded' => '::OV',
'weatherPrimary' => 'Cloudy',
'weatherPrimaryCoded' => '::OV',
'cloudsCoded' => 'OV',
'heatindexF' => 71,
'windchillF' => 71,
'feelslikeF' => 71,
'sunriseISO' => '2017-09-13T06:42:20-04:00',
'sunsetISO' => '2017-09-13T19:14:27-04:00',
'snowDepthIN' => NULL,
'precipIN' => 0,
'sky' => 100,
),
array (
'timestamp' => 1505325240,
'dateTimeISO' => '2017-09-13T13:54:00-04:00',
'tempF' => 71,
'dewpointF' => 63,
'humidity' => 76,
'pressureMB' => 1012,
'altimeterMB' => 1013,
'windMPH' => 10,
'windSpeedMPH' => 10,
'windDirDEG' => 250,
'windGustMPH' => NULL,
'visibilityMI' => 10,
'weather' => 'Cloudy',
'weatherShort' => 'Cloudy',
'weatherCoded' => '::OV',
'weatherPrimary' => 'Cloudy',
'weatherPrimaryCoded' => '::OV',
'cloudsCoded' => 'OV',
'heatindexF' => 71,
'windchillF' => 71,
'feelslikeF' => 71,
'sunriseISO' => '2017-09-13T06:42:20-04:00',
'sunsetISO' => '2017-09-13T19:14:27-04:00',
'snowDepthIN' => NULL,
'precipIN' => 0,
'tempMax6hrF' => 75,
'tempMin6hrF' => 57,
'sky' => 100,
),];
$x = array_filter($x, function ($array) {
return array_key_exists('tempMax6hrF', $array);
});
var_dump($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/2dWP6
function name: (null)
number of ops: 11
compiled vars: !0 = $x
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, <array>
64 1 INIT_FCALL 'array_filter'
2 SEND_VAR !0
3 DECLARE_LAMBDA_FUNCTION '%00%7Bclosure%7D%2Fin%2F2dWP6%3A64%240'
66 4 SEND_VAL ~2
5 DO_ICALL $3
64 6 ASSIGN !0, $3
68 7 INIT_FCALL 'var_dump'
8 SEND_VAR !0
9 DO_ICALL
10 > RETURN 1
Function %00%7Bclosure%7D%2Fin%2F2dWP6%3A64%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/2dWP6
function name: {closure}
number of ops: 4
compiled vars: !0 = $array
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
64 0 E > RECV !0
65 1 ARRAY_KEY_EXISTS ~1 'tempMax6hrF', !0
2 > RETURN ~1
66 3* > RETURN null
End of function %00%7Bclosure%7D%2Fin%2F2dWP6%3A64%240
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
161.86 ms | 1395 KiB | 17 Q