3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; protected $bar = 'two'; private $baz = 'three'; } $b = new Foo(); foreach ($b as $key => $value){ trim($key); print $key."".$value."<br>"; } var_dump($b);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/G59RR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $b, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   12     3      > FE_RESET_R                                       $6      !0, ->14
          4    > > FE_FETCH_R                                       ~7      $6, !1, ->14
          5    >   ASSIGN                                                   !2, ~7
   14     6        INIT_FCALL                                               'trim'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
   15     9        CONCAT                                           ~10     !2, ''
         10        CONCAT                                           ~11     ~10, !1
         11        CONCAT                                           ~12     ~11, '%3Cbr%3E'
         12        ECHO                                                     ~12
   12    13      > JMP                                                      ->4
         14    >   FE_FREE                                                  $6
   20    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.09 ms | 1395 KiB | 17 Q