3v4l.org

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

Function func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6M0up
function name:  func
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 'a'
          2        SEND_VAL                                                 'z'
          3        DO_ICALL                                         $0      
          4      > RETURN                                                   $0
          5*     > RETURN                                                   null

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.69 ms | 1397 KiB | 18 Q