3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term = "100"; if ($term=="mpv" || $term=="bmw" || $term=="mg") { echo strtoupper($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 = 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 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/lIIV5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $term
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '100'
    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                                                      ->18
    9    14    >   INIT_FCALL                                               'ucfirst'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        ECHO                                                     $6
   12    18    >   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'
   22    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.14 ms | 1395 KiB | 17 Q