3v4l.org

run code in 300+ PHP versions simultaneously
<?php $State ='Kentucky'; echo $State; switch($State) { case 'Kentucky': $StateAbbreviation = 'KY'; break; } echo $StateAbbreviation ;
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 = 7
Branch analysis from position: 7
filename:       /in/BCg9v
function name:  (null)
number of ops:  9
compiled vars:  !0 = $State, !1 = $StateAbbreviation
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Kentucky'
          1        ECHO                                                     !0
          2        IS_EQUAL                                                 !0, 'Kentucky'
          3      > JMPNZ                                                    ~3, ->5
          4    > > JMP                                                      ->7
          5    >   ASSIGN                                                   !1, 'KY'
          6      > JMP                                                      ->7
    3     7    >   ECHO                                                     !1
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.73 ms | 1384 KiB | 13 Q