3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array[something] = "Something is not a string. It's a constant. But because it's not found, PHP will assume you meant a string."; //And if you error reporting is off, you'll never know. echo $array[something];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q1ct4
function name:  (null)
number of ops:  7
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~1      'something'
          1        ASSIGN_DIM                                               !0, ~1
          2        OP_DATA                                                  'Something+is+not+a+string.+It%27s+a+constant.+But+because+it%27s+not+found%2C+PHP+will+assume+you+meant+a+string.'
    7     3        FETCH_CONSTANT                                   ~3      'something'
          4        FETCH_DIM_R                                      ~4      !0, ~3
          5        ECHO                                                     ~4
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1392 KiB | 13 Q