3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.26 ms | 1395 KiB | 17 Q