3v4l.org

run code in 300+ PHP versions simultaneously
<?php function d($v) { $r = json_decode($v); var_dump($r); } d('{ "items": [ { "title": "Foo Bar" }, { "title": "Bar Foo" } ], "content": { "title": "Super duper title", "_empty": false } }');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9gVd
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'd'
          1        SEND_VAL                                                 '%7B%0A++%22items%22%3A+%5B%0A++++%7B%0A++++++%22title%22%3A+%22Foo+Bar%22%0A++++%7D%2C%0A++++%7B%0A++++++%22title%22%3A+%22Bar+Foo%22%0A++++%7D%0A++%5D%2C%0A++%22content%22%3A+%7B%0A++++%22title%22%3A+%22Super+duper+title%22%2C%0A++++%22_empty%22%3A+false%0A++%7D%0A%7D'
          2        DO_FCALL                                      0          
   21     3      > RETURN                                                   1

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E9gVd
function name:  d
number of ops:  9
compiled vars:  !0 = $v, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !1, $2
    5     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    6     8      > RETURN                                                   null

End of function d

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.52 ms | 1448 KiB | 16 Q