3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace HHVM\UserDocumentation\Inconsistencies\Intro\Examples\LVP; class Foo { function bar($baz) { $baz = 'herpderp'; // Always outputs array('herpderp') var_dump(func_get_args()); } } $f = new Foo(); $f->bar('blah');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbSAV
function name:  (null)
number of ops:  7
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CLVP%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'bar'
          4        SEND_VAL_EX                                              'blah'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class HHVM\UserDocumentation\Inconsistencies\Intro\Examples\LVP\Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbSAV
function name:  bar
number of ops:  8
compiled vars:  !0 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN                                                   !0, 'herpderp'
    9     2        INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CLVP%5Cvar_dump'
          3        INIT_NS_FCALL_BY_NAME                                    'HHVM%5CUserDocumentation%5CInconsistencies%5CIntro%5CExamples%5CLVP%5Cfunc_get_args'
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR_NO_REF_EX                                       $2
          6        DO_FCALL                                      0          
   10     7      > RETURN                                                   null

End of function bar

End of class HHVM\UserDocumentation\Inconsistencies\Intro\Examples\LVP\Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.37 ms | 1395 KiB | 17 Q