3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getclass() { return null; //return 'My\Class'; } if (null === getclass()) return; 'DateTime' === getclass();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HrKI9
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'getclass'
          1        DO_FCALL                                      0  $0      
          2        TYPE_CHECK                                    2          $0
          3      > JMPZ                                                     ~1, ->5
          4    > > RETURN                                                   null
   11     5    >   INIT_FCALL                                               'getclass'
          6        DO_FCALL                                      0  $2      
          7        IS_IDENTICAL                                     ~3      $2, 'DateTime'
          8        FREE                                                     ~3
          9      > RETURN                                                   1

Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HrKI9
function name:  getclass
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null
    7     1*     > RETURN                                                   null

End of function getclass

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.53 ms | 1397 KiB | 15 Q