3v4l.org

run code in 300+ PHP versions simultaneously
<?php $term = hi; 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 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ChnZs
function name:  (null)
number of ops:  14
compiled vars:  !0 = $term
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~1      'hi'
          1        ASSIGN                                                   !0, ~1
    5     2        IS_EQUAL                                                 !0, 'mpv'
          3      > JMPZ                                                     ~3, ->9
    6     4    >   INIT_FCALL                                               'strtoupper'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8      > JMP                                                      ->13
    9     9    >   INIT_FCALL                                               'ucfirst'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ECHO                                                     $5
   10    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.91 ms | 1394 KiB | 17 Q