3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($term=="mpv" || $term=="bmw" || $term=="mg") { echo strtoupper($term); } elseif(1 === preg_match('~[0-9]~', $term)){ echo "£$term"; } else { echo ucfirst($term); } ?> <!-- if(1 === preg_match('~[0-9]~', $string)){ echo "£$string"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 47) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
Branch analysis from position: 4
filename:       /in/At6FK
function name:  (null)
number of ops:  29
compiled vars:  !0 = $term
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_EQUAL                                         ~1      !0, 'mpv'
          1      > JMPNZ_EX                                         ~1      ~1, ->4
          2    >   IS_EQUAL                                         ~2      !0, 'bmw'
          3        BOOL                                             ~1      ~2
          4    > > JMPNZ_EX                                         ~1      ~1, ->7
          5    >   IS_EQUAL                                         ~3      !0, 'mg'
          6        BOOL                                             ~1      ~3
          7    > > JMPZ                                                     ~1, ->13
    4     8    >   INIT_FCALL                                               'strtoupper'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
         12      > JMP                                                      ->27
    7    13    >   INIT_FCALL                                               'preg_match'
         14        SEND_VAL                                                 '%7E%5B0-9%5D%7E'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $5      
         17        IS_IDENTICAL                                             $5, 1
         18      > JMPZ                                                     ~6, ->23
    8    19    >   NOP                                                      
         20        FAST_CONCAT                                      ~7      '%C2%A3', !0
         21        ECHO                                                     ~7
         22      > JMP                                                      ->27
   12    23    >   INIT_FCALL                                               'ucfirst'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $8      
         26        ECHO                                                     $8
   15    27    >   ECHO                                                     '%0A%0A%0A%0A%0A%0A%3C%21--+if%281+%3D%3D%3D+preg_match%28%27%7E%5B0-9%5D%7E%27%2C+%24string%29%29%7B%0A++++echo+%22%C2%A3%24string%22%3B%0A%7D%0A%0A%3F%3E'
   25    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1396 KiB | 19 Q