3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gaga($state) { if($state == 'fest') echo "Sehr gut Schnaggi"; else echo "Ab sofort Ernährungstagebuch!!!!"; } gaga('fest'); gaga('flüssig'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qlN0k
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'gaga'
          1        SEND_VAL                                                 'fest'
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL                                               'gaga'
          4        SEND_VAL                                                 'fl%C3%BCssig'
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   1

Function gaga:
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 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qlN0k
function name:  gaga
number of ops:  7
compiled vars:  !0 = $state
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        IS_EQUAL                                                 !0, 'fest'
          2      > JMPZ                                                     ~1, ->5
    4     3    >   ECHO                                                     'Sehr+gut+Schnaggi'
          4      > JMP                                                      ->6
    6     5    >   ECHO                                                     'Ab+sofort+Ern%C3%A4hrungstagebuch%21%21%21%21'
    7     6    > > RETURN                                                   null

End of function gaga

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.54 ms | 1397 KiB | 15 Q