3v4l.org

run code in 300+ PHP versions simultaneously
<?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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GnCUm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $globalVar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hey+I%27m+global'
   23     1        CONCAT                                           ~2      'Here+is+the+argument+BEFORE+we+modify+it%3A', !0
          2        ECHO                                                     ~2
   25     3        INIT_FCALL                                               'getallargs'
          4        SEND_REF                                                 !0
          5        DO_FCALL                                      0          
   27     6        CONCAT                                           ~4      'Here+it+is+AFTER%3A', !0
          7        ECHO                                                     ~4
          8      > RETURN                                                   1

Function getallargs:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) 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 8.0.0


preferences:
155.09 ms | 1397 KiB | 14 Q