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_object($what); die(); echo "is is_tall an array???\r\n"; echo is_array($what->input->is_tall)."\r\n\r\n"; echo "is profile an array???\r\n"; echo is_array($what->input->profile)."\r\n\r\n"; echo "is profile an object???\r\n"; echo is_object($what->input->profile)."\r\n\r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/X0aZ8
function name:  (null)
number of ops:  27
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        TYPE_CHECK                                  256  ~5      !1
          6        ECHO                                                     ~5
          7      > EXIT                                                     
   28     8*       ECHO                                                     'is+is_tall+an+array%3F%3F%3F%0D%0A'
   29     9*       FETCH_OBJ_R                                      ~6      !1, 'input'
         10*       FETCH_OBJ_R                                      ~7      ~6, 'is_tall'
         11*       TYPE_CHECK                                  128  ~8      ~7
         12*       CONCAT                                           ~9      ~8, '%0D%0A%0D%0A'
         13*       ECHO                                                     ~9
   31    14*       ECHO                                                     'is+profile+an+array%3F%3F%3F%0D%0A'
   32    15*       FETCH_OBJ_R                                      ~10     !1, 'input'
         16*       FETCH_OBJ_R                                      ~11     ~10, 'profile'
         17*       TYPE_CHECK                                  128  ~12     ~11
         18*       CONCAT                                           ~13     ~12, '%0D%0A%0D%0A'
         19*       ECHO                                                     ~13
   34    20*       ECHO                                                     'is+profile+an+object%3F%3F%3F%0D%0A'
   35    21*       FETCH_OBJ_R                                      ~14     !1, 'input'
         22*       FETCH_OBJ_R                                      ~15     ~14, 'profile'
         23*       TYPE_CHECK                                  256  ~16     ~15
         24*       CONCAT                                           ~17     ~16, '%0D%0A%0D%0A'
         25*       ECHO                                                     ~17
         26*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.97 ms | 1396 KiB | 15 Q