3v4l.org

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

Class a: [no user functions]
Class b: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.24 ms | 1394 KiB | 15 Q