3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; protected $bar = 'two'; private $baz = 'three'; } for($i=0; $i<5;$i++){ echo $i . 'aap'; } $b = (array) new Foo(); var_dump($b["foo"]); var_dump($b["\0*\0bar"]); var_dump($b["\0Foo\0baz"]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/ALDaE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $i, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->5
    9     2    >   CONCAT                                           ~3      !0, 'aap'
          3        ECHO                                                     ~3
    8     4        PRE_INC                                                  !0
          5    >   IS_SMALLER                                               !0, 5
          6      > JMPNZ                                                    ~5, ->2
   12     7    >   NEW                                              $6      'Foo'
          8        DO_FCALL                                      0          
          9        CAST                                          7  ~8      $6
         10        ASSIGN                                                   !1, ~8
   14    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~10     !1, 'foo'
         13        SEND_VAL                                                 ~10
         14        DO_ICALL                                                 
   15    15        INIT_FCALL                                               'var_dump'
         16        FETCH_DIM_R                                      ~12     !1, '%00%2A%00bar'
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                                 
   16    19        INIT_FCALL                                               'var_dump'
         20        FETCH_DIM_R                                      ~14     !1, '%00Foo%00baz'
         21        SEND_VAL                                                 ~14
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.5 ms | 1395 KiB | 15 Q