3v4l.org

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

Class TestEnum: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.83 ms | 1523 KiB | 14 Q