3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a="foobar"; $a[10] = "foo"; var_dump($a); echo ord($a[8]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v9Mdp
function name:  (null)
number of ops:  12
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foobar'
          1        ASSIGN_DIM                                               !0, 10
          2        OP_DATA                                                  'foo'
          3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
          6        INIT_FCALL                                               'ord'
          7        FETCH_DIM_R                                      ~4      !0, 8
          8        SEND_VAL                                                 ~4
          9        DO_ICALL                                         $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.85 ms | 1394 KiB | 17 Q