3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="M"; $last=array($strig,$strg,$string,$stg); echo $last; /*switch($last) { case 'k': case 'K': echo "k"; break; case 'm': case 'M': echo "k"; break; default: echo "o"; } */ ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FbC3G
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string, !1 = $last, !2 = $strig, !3 = $strg, !4 = $stg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'M'
    3     1        INIT_ARRAY                                       ~6      !2
          2        ADD_ARRAY_ELEMENT                                ~6      !3
          3        ADD_ARRAY_ELEMENT                                ~6      !0
          4        ADD_ARRAY_ELEMENT                                ~6      !4
          5        ASSIGN                                                   !1, ~6
    4     6        ECHO                                                     !1
   19     7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.75 ms | 1392 KiB | 13 Q