3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; private $foo; } $foo = new Foo(); $a = eval(var_export($foo, true)); var_export((array) $foo); var_dump( $foo->{"\0*\0bar"}, $foo->{"\0Foo\0foo"} ); $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/eE1sV
function name:  (null)
number of ops:  28
compiled vars:  !0 = $foo, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        INIT_FCALL                                               'var_export'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $5      
          7        INCLUDE_OR_EVAL                                  $6      $5, EVAL
          8        ASSIGN                                                   !1, $6
   12     9        INIT_FCALL                                               'var_export'
         10        CAST                                          7  ~8      !0
         11        SEND_VAL                                                 ~8
         12        DO_ICALL                                                 
   14    13        INIT_FCALL                                               'var_dump'
   15    14        FETCH_OBJ_R                                      ~10     !0, '%00%2A%00bar'
         15        SEND_VAL                                                 ~10
   16    16        FETCH_OBJ_R                                      ~11     !0, '%00Foo%00foo'
         17        SEND_VAL                                                 ~11
         18        DO_ICALL                                                 
   19    19        ASSIGN_OBJ                                               !0, '%00%2A%00bar'
         20        OP_DATA                                                  'baz'
   20    21        ASSIGN_OBJ                                               !0, '%00Foo%00foo'
         22        OP_DATA                                                  'bar'
   22    23        INIT_FCALL                                               'var_dump'
         24        INIT_ARRAY                                       ~15     !0
         25        SEND_VAL                                                 ~15
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.92 ms | 1395 KiB | 17 Q