3v4l.org

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

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

End of function b

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.55 ms | 1396 KiB | 14 Q