3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string="M"; $strig=""; $strg=""; $stg=""; $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/bNFDH
function name:  (null)
number of ops:  11
compiled vars:  !0 = $string, !1 = $strig, !2 = $strg, !3 = $stg, !4 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'M'
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, ''
    5     3        ASSIGN                                                   !3, ''
    6     4        INIT_ARRAY                                       ~9      !1
          5        ADD_ARRAY_ELEMENT                                ~9      !2
          6        ADD_ARRAY_ELEMENT                                ~9      !0
          7        ADD_ARRAY_ELEMENT                                ~9      !3
          8        ASSIGN                                                   !4, ~9
    7     9        ECHO                                                     !4
   22    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.97 ms | 1393 KiB | 13 Q