3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=0; switch($x){ case($x>100): echo 1; break; default: echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
filename:       /in/iXKub
function name:  (null)
number of ops:  9
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    4     1        IS_SMALLER                                       ~3      100, !0
          2        IS_EQUAL                                                 !0, ~3
          3      > JMPNZ                                                    ~2, ->5
          4    > > JMP                                                      ->7
    5     5    >   ECHO                                                     1
    6     6      > JMP                                                      ->8
    8     7    >   ECHO                                                     2
    9     8    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.25 ms | 1392 KiB | 13 Q