3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= date('l'); $b=array('Monday'=>'blue'); echo "Today is: $b[$a]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LL8t1
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'l'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        ASSIGN                                                   !1, <array>
    4     5        NOP                                                      
          6        FETCH_DIM_R                                      ~5      !1, !0
          7        FAST_CONCAT                                      ~6      'Today+is%3A+', ~5
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1385 KiB | 15 Q