3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = new stdClass; $foo->bar = "Hello"; echo "{$foo?->bar} world\n"; echo "$foo->bar world\n"; echo "$foo?->bar world\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nLv3l
function name:  (null)
number of ops:  20
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $1      'stdClass'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    4     3        ASSIGN_OBJ                                                   !0, 'bar'
          4        OP_DATA                                                      'Hello'
    5     5        JMP_NULL                                             ~5      !0
          6        FETCH_OBJ_R                                          ~5      !0, 'bar'
          7        NOP                                                          
          8        FAST_CONCAT                                          ~6      ~5, '+world%0A'
          9        ECHO                                                         ~6
    6    10        FETCH_OBJ_R                                          ~7      !0, 'bar'
         11        NOP                                                          
         12        FAST_CONCAT                                          ~8      ~7, '+world%0A'
         13        ECHO                                                         ~8
    7    14        JMP_NULL                                             ~9      !0
         15        FETCH_OBJ_R                                          ~9      !0, 'bar'
         16        NOP                                                          
         17        FAST_CONCAT                                          ~10     ~9, '+world%0A'
         18        ECHO                                                         ~10
         19      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
193.09 ms | 2909 KiB | 13 Q