3v4l.org

run code in 300+ PHP versions simultaneously
<?php $stuff = '{ "input": { "is_tall": [ "BOOLEAN", false ], "profile": { "fav_color": [ "STRING", true ], "sport": [ "STRING", true ] }, "awesome": "BOOLEAN" } }'; $what = json_decode($stuff); //var_dump($what); echo "is is_tall an array???<br>"; echo is_array($what->input->is_tall)."<br><br>"; echo "is profile an array???<br>"; echo is_array($what->input->profile)."<br><br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WHeBt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $stuff, !1 = $what
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22input%22%3A+%7B%0A++++++++%22is_tall%22%3A+%5B%0A++++++++++++%22BOOLEAN%22%2C%0A++++++++++++false%0A++++++++%5D%2C%0A++++++++%22profile%22%3A+%7B%0A++++++++++++%22fav_color%22%3A+%5B%0A++++++++++++++++%22STRING%22%2C%0A++++++++++++++++true%0A++++++++++++%5D%2C%0A++++++++++++%22sport%22%3A+%5B%0A++++++++++++++++%22STRING%22%2C%0A++++++++++++++++true%0A++++++++++++%5D%0A++++++++%7D%2C%0A++++++++%22awesome%22%3A+%22BOOLEAN%22%0A++++%7D%0A%7D'
   23     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   26     5        ECHO                                                     'is+is_tall+an+array%3F%3F%3F%3Cbr%3E'
   27     6        FETCH_OBJ_R                                      ~5      !1, 'input'
          7        FETCH_OBJ_R                                      ~6      ~5, 'is_tall'
          8        TYPE_CHECK                                  128  ~7      ~6
          9        CONCAT                                           ~8      ~7, '%3Cbr%3E%3Cbr%3E'
         10        ECHO                                                     ~8
   29    11        ECHO                                                     'is+profile+an+array%3F%3F%3F%3Cbr%3E'
   30    12        FETCH_OBJ_R                                      ~9      !1, 'input'
         13        FETCH_OBJ_R                                      ~10     ~9, 'profile'
         14        TYPE_CHECK                                  128  ~11     ~10
         15        CONCAT                                           ~12     ~11, '%3Cbr%3E%3Cbr%3E'
         16        ECHO                                                     ~12
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.27 ms | 1395 KiB | 15 Q