3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (false != $pos = 123) { echo "true " . (int)$pos . "\n"; } else { echo "false " . (int)$pos . "\n"; } if ($pos = 123 != false) { echo "true " . (int)$pos . "\n"; } else { echo "false " . (int)$pos . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
Branch analysis from position: 19
filename:       /in/HKJEE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                           ~1      !0, 123
          1        BOOL                                             ~2      ~1
          2      > JMPZ                                                     ~2, ->8
    5     3    >   CAST                                          4  ~3      !0
          4        CONCAT                                           ~4      'true+', ~3
          5        CONCAT                                           ~5      ~4, '%0A'
          6        ECHO                                                     ~5
          7      > JMP                                                      ->12
    9     8    >   CAST                                          4  ~6      !0
          9        CONCAT                                           ~7      'false+', ~6
         10        CONCAT                                           ~8      ~7, '%0A'
         11        ECHO                                                     ~8
   12    12    >   ASSIGN                                           ~9      !0, <true>
         13      > JMPZ                                                     ~9, ->19
   14    14    >   CAST                                          4  ~10     !0
         15        CONCAT                                           ~11     'true+', ~10
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
         18      > JMP                                                      ->23
   18    19    >   CAST                                          4  ~13     !0
         20        CONCAT                                           ~14     'false+', ~13
         21        CONCAT                                           ~15     ~14, '%0A'
         22        ECHO                                                     ~15
   19    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1394 KiB | 13 Q