3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('undefined', null); function my_function($hello = 123) { var_dump($hello); } my_function(null); // > null my_function(undefined); // > 123 my_function($v);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SblIZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $v
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'undefined'
          2        SEND_VAL                                                     null
          3        DO_ICALL                                                     
   10     4        INIT_FCALL                                                   'my_function'
          5        SEND_VAL                                                     null
          6        DO_FCALL                                          0          
   11     7        INIT_FCALL                                                   'my_function'
          8        FETCH_CONSTANT                                       ~3      'undefined'
          9        SEND_VAL                                                     ~3
         10        DO_FCALL                                          0          
   12    11        INIT_FCALL                                                   'my_function'
         12        SEND_VAR                                                     !0
         13        DO_FCALL                                          0          
         14      > RETURN                                                       1

Function my_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SblIZ
function name:  my_function
number of ops:  5
compiled vars:  !0 = $hello
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   RECV_INIT                                            !0      123
    7     1        INIT_FCALL                                                   'var_dump'
          2        SEND_VAR                                                     !0
          3        DO_ICALL                                                     
    8     4      > RETURN                                                       null

End of function my_function

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.56 ms | 3367 KiB | 18 Q