3v4l.org

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

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

End of function return_void

Function return_null:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3KQC8
function name:  return_null
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 return_null

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.14 ms | 1016 KiB | 15 Q