3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1393 KiB | 13 Q