3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function() { debug_backtrace(); }); 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/Z9ldV
function name:  (null)
number of ops:  12
compiled vars:  !0 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_error_handler'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZ9ldV%3A3%240'
          2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    6     4        ASSIGN                                                   !0, '1'
    7     5        INIT_FCALL                                               'x'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
    8     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZ9ldV%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z9ldV
function name:  {closure}
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'debug_backtrace'
          1        DO_ICALL                                                 
          2      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZ9ldV%3A3%240

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z9ldV
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:
152.62 ms | 1402 KiB | 20 Q