3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new stdClass; @print $x->foo->bar(); @print $x->foo(); echo "end";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RO3Oi
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        BEGIN_SILENCE                                    ~4      
          4        FETCH_OBJ_R                                      ~5      !0, 'foo'
          5        INIT_METHOD_CALL                                         ~5, 'bar'
          6        DO_FCALL                                      0  $6      
          7        ECHO                                                     $6
          8        END_SILENCE                                              ~4
    6     9        BEGIN_SILENCE                                    ~7      
         10        INIT_METHOD_CALL                                         !0, 'foo'
         11        DO_FCALL                                      0  $8      
         12        ECHO                                                     $8
         13        END_SILENCE                                              ~7
    8    14        ECHO                                                     'end'
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.94 ms | 1393 KiB | 13 Q