3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1400 KiB | 17 Q