3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @param array<Exception> $input */ function takes(array $input): string|null { return $input[0]?->getMessage(); } takes([]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1raa8
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'takes'
          1        SEND_VAL                                                 <array>
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function takes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1raa8
function name:  takes
number of ops:  9
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        FETCH_DIM_R                                      ~1      !0, 0
          2        JMP_NULL                                         $2      ~1
          3        INIT_METHOD_CALL                                         ~1, 'getMessage'
          4        DO_FCALL                                      0  $2      
          5        VERIFY_RETURN_TYPE                                       $2
          6      > RETURN                                                   $2
    9     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function takes

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.2 ms | 1397 KiB | 14 Q