3v4l.org

run code in 500+ PHP versions simultaneously
<?php $day = 2; $today = [ 1 => "Monday", 2 => "Tuesday", 3 => "Wednesday", 4 => "Thursday", 5 => "Friday", 6 => "Saturday", 7 => "Sunday" ][$day] ?? "Out of day range!"; echo "Today is: " . $today . ".";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K3DAL
function name:  (null)
number of ops:  9
compiled vars:  !0 = $day, !1 = $today
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 2
   13     1        FETCH_DIM_IS                                         ~3      <array>, !0
          2        COALESCE                                             ~4      ~3
          3        QM_ASSIGN                                            ~4      'Out+of+day+range%21'
    5     4        ASSIGN                                                       !1, ~4
   15     5        CONCAT                                               ~6      'Today+is%3A+', !1
          6        CONCAT                                               ~7      ~6, '.'
          7        ECHO                                                         ~7
          8      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
175.78 ms | 2036 KiB | 13 Q