3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sapling = array("Rose" => array("Type" => "Flower", "Life" => 10), "Bell" => array("Type" => "Rock", "Life" => 20)); $name = isset($_GET['test']) ? $_GET['test'] : 'Rose'; echo $sapling[$name]['Life']; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNIFe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $sapling, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        FETCH_IS                                         ~3      '_GET'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~3, 'test'
          3      > JMPZ                                                     ~4, ->8
          4    >   FETCH_R                      global              ~5      '_GET'
          5        FETCH_DIM_R                                      ~6      ~5, 'test'
          6        QM_ASSIGN                                        ~7      ~6
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~7      'Rose'
          9    >   ASSIGN                                                   !1, ~7
   10    10        FETCH_DIM_R                                      ~9      !0, !1
         11        FETCH_DIM_R                                      ~10     ~9, 'Life'
         12        ECHO                                                     ~10
   11    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.91 ms | 1393 KiB | 13 Q