3v4l.org

run code in 300+ PHP versions simultaneously
<?php function d($v) { $r = json_decode($v); var_dump($r); } d('{"foo":"bar"}'); d('{"foo":[1,2]}'); d('{"foo":[{"bar":"baz"}]}');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pEKaA
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'd'
          1        SEND_VAL                                                 '%7B%22foo%22%3A%22bar%22%7D'
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'd'
          4        SEND_VAL                                                 '%7B%22foo%22%3A%5B1%2C2%5D%7D'
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'd'
          7        SEND_VAL                                                 '%7B%22foo%22%3A%5B%7B%22bar%22%3A%22baz%22%7D%5D%7D'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pEKaA
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:
140.26 ms | 1448 KiB | 18 Q