3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test12() { debug_backtrace(); } set_error_handler("test12"); function x($s) { $s['a'] = 1; }; $y = '1'; x($y); print_r($y);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Ztiv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        SEND_VAL                                                 'test12'
          2        DO_ICALL                                                 
    6     3        ASSIGN                                                   !0, '1'
    7     4        INIT_FCALL                                               'x'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
    8     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function test12:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Ztiv
function name:  test12
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                                 
          2      > RETURN                                                   null

End of function test12

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Ztiv
function name:  x
number of ops:  4
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        ASSIGN_DIM                                               !0, 'a'
          2        OP_DATA                                                  1
          3      > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.38 ms | 1389 KiB | 20 Q