3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); var_dump(array($foo)); $foo->{"\0*\0bar"} = 'baz'; $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/YNblg
function name:  (null)
number of ops:  16
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_FCALL                                               'var_dump'
          4        INIT_ARRAY                                       ~4      !0
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   13     7        ASSIGN_OBJ                                               !0, '%00%2A%00bar'
          8        OP_DATA                                                  'baz'
   14     9        ASSIGN_OBJ                                               !0, '%00Foo%00foo'
         10        OP_DATA                                                  'bar'
   16    11        INIT_FCALL                                               'var_dump'
         12        INIT_ARRAY                                       ~8      !0
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.39 ms | 1398 KiB | 15 Q