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($input['is_tall'])."<br><br>"; echo "is profile an array???<br>"; echo is_array($input['profile'])."<br><br>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SMFWO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $stuff, !1 = $what, !2 = $input
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                                         $4      
          4        ASSIGN                                                   !1, $4
   24     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   26     8        ECHO                                                     'is+is_tall+an+array%3F%3F%3F%3Cbr%3E'
   27     9        FETCH_DIM_R                                      ~7      !2, 'is_tall'
         10        TYPE_CHECK                                  128  ~8      ~7
         11        CONCAT                                           ~9      ~8, '%3Cbr%3E%3Cbr%3E'
         12        ECHO                                                     ~9
   29    13        ECHO                                                     'is+profile+an+array%3F%3F%3F%3Cbr%3E'
   30    14        FETCH_DIM_R                                      ~10     !2, 'profile'
         15        TYPE_CHECK                                  128  ~11     ~10
         16        CONCAT                                           ~12     ~11, '%3Cbr%3E%3Cbr%3E'
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.6 ms | 1386 KiB | 17 Q