3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=(bool)0; var_dump('' == $a and 'a' == $a and '' === (string)$a and 'a' === (string)$a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/YjT2C
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BOOL                                             ~1      0
          1        ASSIGN                                                   !0, ~1
    3     2        INIT_FCALL                                               'var_dump'
          3        IS_EQUAL                                         ~3      !0, ''
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_EQUAL                                         ~4      !0, 'a'
          6        BOOL                                             ~3      ~4
          7    > > JMPZ_EX                                          ~3      ~3, ->11
          8    >   CAST                                          6  ~5      !0
          9        IS_IDENTICAL                                     ~6      ~5, ''
         10        BOOL                                             ~3      ~6
         11    > > JMPZ_EX                                          ~3      ~3, ->15
         12    >   CAST                                          6  ~7      !0
         13        IS_IDENTICAL                                     ~8      ~7, 'a'
         14        BOOL                                             ~3      ~8
         15    >   SEND_VAL                                                 ~3
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.79 ms | 1395 KiB | 15 Q