3v4l.org

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

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

End of function getnull

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

End of function getnothing

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1397 KiB | 17 Q