3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 5; $y = 3; $z = 0; $z = $x - $y; if ($z < 2) {echo 'z is less than 2' . $z;} else {echo 'z is not less than 2' . $z;}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ifKT9
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, 3
    5     2        ASSIGN                                                   !2, 0
    7     3        SUB                                              ~6      !0, !1
          4        ASSIGN                                                   !2, ~6
    9     5        IS_SMALLER                                               !2, 2
          6      > JMPZ                                                     ~8, ->10
   10     7    >   CONCAT                                           ~9      'z+is+less+than+2', !2
          8        ECHO                                                     ~9
          9      > JMP                                                      ->12
   12    10    >   CONCAT                                           ~10     'z+is+not+less+than+2', !2
         11        ECHO                                                     ~10
         12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.25 ms | 1393 KiB | 13 Q