3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((string) '0XBAD' == (string) '2989'); if((string) '0XBAD' == (string) '2989') { echo "PHP suckz"; } else { echo "PHP rulez"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VMt5H
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        CAST                                          6  ~0      '0XBAD'
          2        CAST                                          6  ~1      '2989'
          3        IS_EQUAL                                         ~2      ~0, ~1
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    3     6        CAST                                          6  ~4      '0XBAD'
          7        CAST                                          6  ~5      '2989'
          8        IS_EQUAL                                                 ~4, ~5
          9      > JMPZ                                                     ~6, ->12
    5    10    >   ECHO                                                     'PHP+suckz'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'PHP+rulez'
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.98 ms | 1394 KiB | 15 Q