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.
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0CXk3
function name:  (null)
number of ops:  4
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.'
    5     3      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.71 ms | 1396 KiB | 13 Q