3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.14 ms | 1395 KiB | 15 Q