3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bla() { $bla = new stdClass(); $bla->a = 5; return $bla; } echo bla()->a;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vUDfZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'bla'
          1        DO_FCALL                                      0  $0      
          2        FETCH_OBJ_R                                      ~1      $0, 'a'
          3        ECHO                                                     ~1
          4      > RETURN                                                   1

Function bla:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vUDfZ
function name:  bla
number of ops:  7
compiled vars:  !0 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    6     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  5
    7     5      > RETURN                                                   !0
    8     6*     > RETURN                                                   null

End of function bla

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.79 ms | 1401 KiB | 14 Q