3v4l.org

run code in 300+ PHP versions simultaneously
<?php function belette($who) { echo "Belette $who!\n"; } class A { } class B { public function __construct($value) { } } $i = 0; new A($i++); new B($i++); var_dump($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WS3AN
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 0
   18     1        NEW                                              $2      'A'
          2        POST_INC                                         ~3      !0
          3        SEND_VAL_EX                                              ~3
          4        DO_FCALL                                      0          
          5        FREE                                                     $2
   19     6        NEW                                              $5      'B'
          7        POST_INC                                         ~6      !0
          8        SEND_VAL_EX                                              ~6
          9        DO_FCALL                                      0          
         10        FREE                                                     $5
   21    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function belette:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WS3AN
function name:  belette
number of ops:  6
compiled vars:  !0 = $who
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ROPE_INIT                                     3  ~2      'Belette+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%21%0A'
          4        ECHO                                                     ~1
    5     5      > RETURN                                                   null

End of function belette

Class A: [no user functions]
Class B:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WS3AN
function name:  __construct
number of ops:  2
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1      > RETURN                                                   null

End of function __construct

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.1 ms | 1396 KiB | 15 Q