3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.35 ms | 1394 KiB | 15 Q