3v4l.org

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

Function my_function:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QTUMW
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:
161.92 ms | 3301 KiB | 16 Q