3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doArrayStuff(array $stuff = null) { // do stuff echo 'this worked without fatal erroring'; } function doFileStuff(SplFileInfo $finfo = null) { // do stuff echo 'this worked without fatal erroring'; } doArrayStuff(null); doFileStuff(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lrjQn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'doarraystuff'
          1        SEND_VAL                                                 null
          2        DO_FCALL                                      0          
   14     3        INIT_FCALL                                               'dofilestuff'
          4        SEND_VAL                                                 null
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function doarraystuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lrjQn
function name:  doArrayStuff
number of ops:  3
compiled vars:  !0 = $stuff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
    5     1        ECHO                                                     'this+worked+without+fatal+erroring'
    6     2      > RETURN                                                   null

End of function doarraystuff

Function dofilestuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lrjQn
function name:  doFileStuff
number of ops:  3
compiled vars:  !0 = $finfo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_INIT                                        !0      null
   10     1        ECHO                                                     'this+worked+without+fatal+erroring'
   11     2      > RETURN                                                   null

End of function dofilestuff

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1397 KiB | 15 Q