3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $aThing; $aThing= [ 'stuff' => 1, 'more_stuff' => 'The night is dark and full of terror', ]; function checkThing($aThing = null) { global $aThing; var_dump($aThing); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jRkfV
function name:  (null)
number of ops:  3
compiled vars:  !0 = $aThing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BIND_GLOBAL                                              !0, 'aThing'
    5     1        ASSIGN                                                   !0, <array>
   14     2      > RETURN                                                   1

Function checkthing:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jRkfV
function name:  checkThing
number of ops:  6
compiled vars:  !0 = $aThing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV_INIT                                        !0      null
   12     1        BIND_GLOBAL                                              !0, 'aThing'
   13     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
   14     5      > RETURN                                                   null

End of function checkthing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.36 ms | 1394 KiB | 15 Q