3v4l.org

run code in 300+ PHP versions simultaneously
<?php function Test() { $a = function_get_args(); if ($a) unset($a); 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/8JnXI
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 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/8JnXI
function name:  Test
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'function_get_args'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
    4     3      > JMPZ                                                     !0, ->5
          4    >   UNSET_CV                                                 !0
    5     5    > > RETURN                                                   'testing'
    6     6*     > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.96 ms | 1397 KiB | 16 Q