3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res[0] = "1.12"; $res[1] = ">"; $res[2] = "1"; switch($res[1]) { case ">": return $res[0]." > ".$res[1]; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A79j4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  '1.12'
    4     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  '%3E'
    5     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  '1'
    7     6        FETCH_DIM_R                                      ~4      !0, 1
    8     7        CASE                                                     ~4, '%3E'
          8      > JMPNZ                                                    ~5, ->10
          9    > > JMP                                                      ->17
    9    10    >   FETCH_DIM_R                                      ~6      !0, 0
         11        CONCAT                                           ~7      ~6, '+%3E+'
         12        FETCH_DIM_R                                      ~8      !0, 1
         13        CONCAT                                           ~9      ~7, ~8
         14        FREE                                                     ~4
         15      > RETURN                                                   ~9
   10    16*       JMP                                                      ->17
         17    >   FREE                                                     ~4
   12    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.05 ms | 1394 KiB | 13 Q