3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); /** * @return string[] */ function helper(): array { return []; } $typed_string = helper(); $typed_string = mb_strtolower(array_pop($typed_string)); var_export($typed_string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nEK5c
function name:  (null)
number of ops:  14
compiled vars:  !0 = $typed_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'helper'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'mb_strtolower'
          4        INIT_FCALL                                               'array_pop'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !0, $4
   12    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

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

End of function helper

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.82 ms | 1009 KiB | 17 Q