3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return new stdClass; } $foo1 = foo(); $foo2 = foo(); var_dump( foo(), foo() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LDREY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $foo1, !1 = $foo2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'foo'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
   10     3        INIT_FCALL                                               'foo'
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !1, $4
   12     6        INIT_FCALL                                               'var_dump'
   13     7        INIT_FCALL                                               'foo'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
   14    10        INIT_FCALL                                               'foo'
         11        DO_FCALL                                      0  $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                                 
   15    14      > RETURN                                                   1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.79 ms | 1397 KiB | 19 Q