3v4l.org

run code in 300+ PHP versions simultaneously
<?php function name($q){ $arr = ['ip' => '127.0.0.1', 'base_url' => '/myweb/']; return $arr[$q]; } $a['s'] = <<<HERE name('base_url') HERE; echo $a['s'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8QVme
function name:  (null)
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_DIM                                               !0, 's'
   11     1        OP_DATA                                                  '++++name%28%27base_url%27%29'
   14     2        FETCH_DIM_R                                      ~2      !0, 's'
          3        ECHO                                                     ~2
          4      > RETURN                                                   1

Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8QVme
function name:  name
number of ops:  5
compiled vars:  !0 = $q, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    6     2        FETCH_DIM_R                                      ~3      !1, !0
          3      > RETURN                                                   ~3
    7     4*     > RETURN                                                   null

End of function name

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.17 ms | 1006 KiB | 13 Q