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 = iiset($_GET['test']) ? $_GET['test'] : 'Rose'; echo $sapling[$name]['Life']; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BLXOt
function name:  (null)
number of ops:  18
compiled vars:  !0 = $sapling, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL_BY_NAME                                       'iiset'
          2        CHECK_FUNC_ARG                                           
          3        FETCH_FUNC_ARG               global              $3      '_GET'
          4        FETCH_DIM_FUNC_ARG                               $4      $3, 'test'
          5        SEND_FUNC_ARG                                            $4
          6        DO_FCALL                                      0  $5      
          7      > JMPZ                                                     $5, ->12
          8    >   FETCH_R                      global              ~6      '_GET'
          9        FETCH_DIM_R                                      ~7      ~6, 'test'
         10        QM_ASSIGN                                        ~8      ~7
         11      > JMP                                                      ->13
         12    >   QM_ASSIGN                                        ~8      'Rose'
         13    >   ASSIGN                                                   !1, ~8
   10    14        FETCH_DIM_R                                      ~10     !0, !1
         15        FETCH_DIM_R                                      ~11     ~10, 'Life'
         16        ECHO                                                     ~11
   11    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1394 KiB | 13 Q