3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Obj { public $str1 = 'foo'; public $str2 = 'bar'; } $obj = new Obj; foreach($obj as $s) var_dump($s); echo 'string: ' . vsprintf('%s %s', $obj);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/9I6QW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $obj, !1 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $2      'Obj'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    8     3      > FE_RESET_R                                       $5      !0, ->9
          4    > > FE_FETCH_R                                               $5, !1, ->9
    9     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
    8     8      > JMP                                                      ->4
          9    >   FE_FREE                                                  $5
   11    10        INIT_FCALL                                               'vsprintf'
         11        SEND_VAL                                                 '%25s+%25s'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $7      
         14        CONCAT                                           ~8      'string%3A+', $7
         15        ECHO                                                     ~8
         16      > RETURN                                                   1

Class Obj: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.79 ms | 1395 KiB | 17 Q