3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { private $t = "yolo"; } $f = new Foo(); $f = (array) $f; var_dump($f["\0Foo\0t"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rc9M
function name:  (null)
number of ops:  10
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'Foo'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    8     3        CAST                                              7  ~4      !0
          4        ASSIGN                                                       !0, ~4
   10     5        INIT_FCALL                                                   'var_dump'
          6        FETCH_DIM_R                                          ~6      !0, '%00Foo%00t'
          7        SEND_VAL                                                     ~6
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.19 ms | 3031 KiB | 14 Q