3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getarr() { return [1,2,3,4]; } //var_dump(empty(always_false())); var_dump(array(1,2,3)); var_dump([1,2,3]); var_dump(getarr()[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKgfK
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
    8     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                                 
    9     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'getarr'
          8        DO_FCALL                                      0  $2      
          9        FETCH_DIM_R                                      ~3      $2, 1
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

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

End of function getarr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.05 ms | 1397 KiB | 16 Q