3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Tests { } $a = array('Test' => 'foo'); $b = new Test(); var_dump($a[$b]);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/0Pn2f
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        ASSIGN                                                   !0, <array>
   8     2        NEW                                              $4      :-5
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !1, $4
  10     5        INIT_FCALL                                               'var_dump'
         6        FETCH_DIM_R                                      $7      !0, !1
         7        SEND_VAR                                                 $7
         8        DO_ICALL                                                 
         9      > RETURN                                                   1

Class Tests: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0