3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.42 ms | 1386 KiB | 15 Q