3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($a) {} // 2 * undefined variable foo($b); var_dump($b); // NULL // no error function foo2(&$a) {} // undefined variable foo($c); // Now, $c exists var_dump($c); // NULL
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKV5D
function name:  (null)
number of ops:  13
compiled vars:  !0 = $b, !1 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'foo'
          1        SEND_VAR                                                     !0
          2        DO_FCALL                                          0          
    6     3        INIT_FCALL                                                   'var_dump'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                                     
   11     6        INIT_FCALL                                                   'foo'
          7        SEND_VAR                                                     !1
          8        DO_FCALL                                          0          
   13     9        INIT_FCALL                                                   'var_dump'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKV5D
function name:  foo
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function foo

Function foo2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fKV5D
function name:  foo2
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function foo2

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.67 ms | 481 KiB | 10 Q