3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dummy { public $pub = 0; protected $prot = 1; private $priv = 2; } $dummy = new Dummy(); var_dump((array) $dummy); foreach ((array) $dummy as $name => $val) { $tpl->$name = $val; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/RULeq
function name:  (null)
number of ops:  16
compiled vars:  !0 = $dummy, !1 = $val, !2 = $name, !3 = $tpl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $4      'Dummy'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
   10     3        INIT_FCALL                                               'var_dump'
          4        CAST                                          7  ~7      !0
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                                 
   12     7        CAST                                          7  ~9      !0
          8      > FE_RESET_R                                       $10     ~9, ->14
          9    > > FE_FETCH_R                                       ~11     $10, !1, ->14
         10    >   ASSIGN                                                   !2, ~11
   13    11        ASSIGN_OBJ                                               !3, !2
         12        OP_DATA                                                  !1
   12    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $10
   14    15      > RETURN                                                   1

Class Dummy: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.06 ms | 1395 KiB | 15 Q