3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getStatusColor($color){ if ($color == 'warning'){ return "#eea236"; } elseif ($color == 'info'){ return "#46b8da"; } elseif ($color == 'error'){ return "#d43f3a"; } elseif ($color == 'success'){ return "#4BAD4B"; } } echo getStatusColor('info');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnZjO
function name:  (null)
number of ops:  5
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  $0      
          3        ECHO                                                     $0
          4      > 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 = 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 = 62) Position 1 = -2
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 = 62) Position 1 = -2
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
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bnZjO
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    > > RETURN                                                   '%23eea236'
          4*       JMP                                                      ->16
    6     5    >   IS_EQUAL                                                 !0, 'info'
          6      > JMPZ                                                     ~2, ->9
    7     7    > > RETURN                                                   '%2346b8da'
          8*       JMP                                                      ->16
    9     9    >   IS_EQUAL                                                 !0, 'error'
         10      > JMPZ                                                     ~3, ->13
   10    11    > > RETURN                                                   '%23d43f3a'
         12*       JMP                                                      ->16
   12    13    >   IS_EQUAL                                                 !0, 'success'
         14      > JMPZ                                                     ~4, ->16
   13    15    > > RETURN                                                   '%234BAD4B'
   15    16    > > RETURN                                                   null

End of function getstatuscolor

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.13 ms | 1390 KiB | 14 Q