3v4l.org

run code in 300+ PHP versions simultaneously
<?php $browser = ["test"]; function myProp() { global $browser; $browser = ["test", "david"]; } myProp(); print_r( $browser ); // outputs 15 ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X97Ba
function name:  (null)
number of ops:  7
compiled vars:  !0 = $browser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'myprop'
          2        DO_FCALL                                      0          
   10     3        INIT_FCALL                                               'print_r'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
   11     6      > RETURN                                                   1

Function myprop:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X97Ba
function name:  myProp
number of ops:  3
compiled vars:  !0 = $browser
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_GLOBAL                                              !0, 'browser'
    6     1        ASSIGN                                                   !0, <array>
    7     2      > RETURN                                                   null

End of function myprop

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.94 ms | 1396 KiB | 16 Q