3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Q { } $q = new Q(); if (get_class($q) == Q::class) { echo 1; } echo 2;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/N5DPT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Q'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        GET_CLASS                                        ~4      !0
          4        IS_EQUAL                                                 ~4, 'Q'
          5      > JMPZ                                                     ~5, ->7
   10     6    >   ECHO                                                     1
   12     7    >   ECHO                                                     2
   13     8      > RETURN                                                   1

Class Q: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.2 ms | 1392 KiB | 13 Q