3v4l.org

run code in 500+ PHP versions simultaneously
<?php function example(string $foo) { print $foo; } // Fatal error: Uncaught TypeError: example(): Argument #1 ($foo) must be of type string, null given example(null);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6rsRd
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'example'
          1        SEND_VAL                                                     null
          2        DO_FCALL                                          0          
          3      > RETURN                                                       1

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

End of function example

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.61 ms | 1478 KiB | 14 Q