3v4l.org

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

End of function dofilestuff

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.13 ms | 1397 KiB | 15 Q