3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url="http://fbclaurel.onthecity.org/plaza/events?format=json"; $data = file_get_contents($url); $json = json_decode($data); //echo '<pre>'; //print_r( $json[0]->global_event); array_walk_recursive($json[0]->global_event, function ($v,$k){ echo 'KEY :'.$v.' & Value :'.$k.'<br>'; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8lJlW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $url, !1 = $data, !2 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ffbclaurel.onthecity.org%2Fplaza%2Fevents%3Fformat%3Djson'
    5     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   11     9        INIT_FCALL                                               'array_walk_recursive'
         10        FETCH_DIM_W                                      $8      !2, 0
         11        FETCH_OBJ_W                                      $9      $8, 'global_event'
         12        SEND_REF                                                 $9
         13        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8lJlW%3A11%240'
   15    14        SEND_VAL                                                 ~10
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F8lJlW%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8lJlW
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $v, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        CONCAT                                           ~2      'KEY+%3A', !0
          3        CONCAT                                           ~3      ~2, '+%26+Value+%3A'
          4        CONCAT                                           ~4      ~3, !1
          5        CONCAT                                           ~5      ~4, '%3Cbr%3E'
          6        ECHO                                                     ~5
   15     7      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F8lJlW%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.69 ms | 1396 KiB | 19 Q