3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('NULL_CONSTANT', null); function bla(array $arr = NULL_CONSTANT) { var_dump($arr); } bla(); bla(null); bla(array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BdEX6
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'NULL_CONSTANT'
          2        SEND_VAL                                                 null
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'bla'
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL                                               'bla'
          7        SEND_VAL                                                 null
          8        DO_FCALL                                      0          
   11     9        INIT_FCALL                                               'bla'
         10        SEND_VAL                                                 <array>
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

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

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1397 KiB | 20 Q