3v4l.org

run code in 500+ PHP versions simultaneously
<?php function f_false():int|false{ // perfectly legal (php>=8) return false; } function f_true():int|true{ // .. Fatal error: Cannot use 'true' as class name return true; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uD2LA
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                       1

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

End of function f_false

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

End of function f_true

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.82 ms | 1991 KiB | 14 Q