3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = getDate(); $testName = $test[year] + $test[hour]; echo($testName);
based on AoZHA
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7e4Lv
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test, !1 = $testName
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'getdate'
         1        DO_ICALL                                         $2      
         2        ASSIGN                                                   !0, $2
   5     3        FETCH_CONSTANT                                   ~4      'year'
         4        FETCH_DIM_R                                      $5      !0, ~4
         5        FETCH_CONSTANT                                   ~6      'hour'
         6        FETCH_DIM_R                                      $7      !0, ~6
         7        ADD                                              ~8      $5, $7
         8        ASSIGN                                                   !1, ~8
   6     9        ECHO                                                     !1
        10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0