3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.86 ms | 1393 KiB | 13 Q