3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.38 ms | 1395 KiB | 15 Q