3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.21 ms | 1395 KiB | 15 Q