3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($term == "mpv") echo strtoupper($term); else { echo ucfirst($term); }?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7k99F
function name:  (null)
number of ops:  12
compiled vars:  !0 = $term
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   IS_EQUAL                                                 !0, 'mpv'
          1      > JMPZ                                                     ~1, ->7
    4     2    >   INIT_FCALL                                               'strtoupper'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ECHO                                                     $2
          6      > JMP                                                      ->11
    7     7    >   INIT_FCALL                                               'ucfirst'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ECHO                                                     $3
    8    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.62 ms | 1394 KiB | 17 Q