3v4l.org

run code in 300+ PHP versions simultaneously
<?php function par_impar($numero){ // a través de esta sentencia creamos la función par e impar if($numero % 2 == 0){ // Aquí si el número es mayor de dos mas cero arrojara el número es par printf('par'); }else{ // mientras que si el numero no corresponde a la división de dos arroja impar. print('impar'); } } par_impar(8); // aquí ingresamos el número que deseamos verificar. ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBcH3
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'par_impar'
          1        SEND_VAL                                                 8
          2        DO_FCALL                                      0          
   16     3      > RETURN                                                   1

Function par_impar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sBcH3
function name:  par_impar
number of ops:  10
compiled vars:  !0 = $numero
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        MOD                                              ~1      !0, 2
          2        IS_EQUAL                                                 ~1, 0
          3      > JMPZ                                                     ~2, ->8
    7     4    >   INIT_FCALL                                               'printf'
          5        SEND_VAL                                                 'par'
          6        DO_ICALL                                                 
          7      > JMP                                                      ->9
    9     8    >   ECHO                                                     'impar'
   12     9    > > RETURN                                                   null

End of function par_impar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.79 ms | 1389 KiB | 16 Q