3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStatusColor($color){ if ($color == 'warning'){ echo "#eea236"; } elseif ($color == 'info'){ echo "#46b8da"; } elseif ($color == 'error'){ echo "#d43f3a"; } elseif ($color == 'success'){ echo "#4BAD4B"; } } getStatusColor('info');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4MUu
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'getstatuscolor'
          1        SEND_VAL                                                 'info'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function getstatuscolor:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/L4MUu
function name:  getStatusColor
number of ops:  17
compiled vars:  !0 = $color
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        IS_EQUAL                                                 !0, 'warning'
          2      > JMPZ                                                     ~1, ->5
    4     3    >   ECHO                                                     '%23eea236'
          4      > JMP                                                      ->16
    6     5    >   IS_EQUAL                                                 !0, 'info'
          6      > JMPZ                                                     ~2, ->9
    7     7    >   ECHO                                                     '%2346b8da'
          8      > JMP                                                      ->16
    9     9    >   IS_EQUAL                                                 !0, 'error'
         10      > JMPZ                                                     ~3, ->13
   10    11    >   ECHO                                                     '%23d43f3a'
         12      > JMP                                                      ->16
   12    13    >   IS_EQUAL                                                 !0, 'success'
         14      > JMPZ                                                     ~4, ->16
   13    15    >   ECHO                                                     '%234BAD4B'
   15    16    > > RETURN                                                   null

End of function getstatuscolor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.37 ms | 1399 KiB | 14 Q