3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $globalVar = 'Hey I\'m global'; function getAllArgs(&$globalVar1) { /* if(func_num_args() > 0) { foreach(func_get_args() as $arg => $value) { echo $arg. ' ' . $value; } }else { echo 'No arguments given';__construct } */ $globalVar1 = 'Now I\'ve been modified by the function.'; } echo "Here is the argument BEFORE we modify it:" . $globalVar; getAllArgs($globalVar); echo "Here it is AFTER:" . $globalVar;
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/GnCUm
function name:  (null)
number of ops:  10
compiled vars:  !0 = $globalVar
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 'Hey+I%27m+global'
   6     1        NOP                                                      
  23     2        CONCAT                                           ~2      'Here+is+the+argument+BEFORE+we+modify+it%3A', !0
         3        ECHO                                                     ~2
  25     4        INIT_FCALL                                               'getallargs'
         5        SEND_REF                                                 !0
         6        DO_FCALL                                      0          
  27     7        CONCAT                                           ~4      'Here+it+is+AFTER%3A', !0
         8        ECHO                                                     ~4
         9      > RETURN                                                   1

Function getallargs:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/GnCUm
function name:  getAllArgs
number of ops:  3
compiled vars:  !0 = $globalVar1
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   RECV                                             !0      
  20     1        ASSIGN                                                   !0, 'Now+I%27ve+been+modified+by+the+function.'
  21     2      > RETURN                                                   null

End of function getallargs

Generated using Vulcan Logic Dumper, using php 7.2.0