3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1394 KiB | 15 Q