3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(?string $a = null):?string { return $a; } echo test('a'); echo test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rEFhf
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'a'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
    8     4        INIT_FCALL                                               'test'
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

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

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.48 ms | 1397 KiB | 15 Q