3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Test() { $f = func_get_args(); if ($f) unset($f); return 'testing'; } echo Test($a = "me"),"\n"; var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqOm0
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        ASSIGN                                           ~1      !0, 'me'
          2        SEND_VAL                                                 ~1
          3        DO_FCALL                                      0  $2      
          4        ECHO                                                     $2
          5        ECHO                                                     '%0A'
    8     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/DqOm0
function name:  Test
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
    4     2      > JMPZ                                                     !0, ->4
          3    >   UNSET_CV                                                 !0
    5     4    > > RETURN                                                   'testing'
    6     5*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.33 ms | 1397 KiB | 16 Q