3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "foobar"; var_dump(isset($string[1]), isset($string[997])); $string[1] = null; $string[2] = 42; $string[3] = array(); $string[6] = "!"; $string[997] = null; var_dump(bin2hex($string));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kQ8lR
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'foobar'
    3     1        INIT_FCALL                                               'var_dump'
          2        ISSET_ISEMPTY_DIM_OBJ                         0  ~2      !0, 1
          3        SEND_VAL                                                 ~2
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      !0, 997
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    4     7        ASSIGN_DIM                                               !0, 1
          8        OP_DATA                                                  null
    5     9        ASSIGN_DIM                                               !0, 2
         10        OP_DATA                                                  42
    6    11        ASSIGN_DIM                                               !0, 3
         12        OP_DATA                                                  <array>
    7    13        ASSIGN_DIM                                               !0, 6
         14        OP_DATA                                                  '%21'
    8    15        ASSIGN_DIM                                               !0, 997
         16        OP_DATA                                                  null
    9    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'bin2hex'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $10     
         21        SEND_VAR                                                 $10
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.4 ms | 1395 KiB | 17 Q