3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*Codigo para saber si numero ingresado es par o impar*/ $numero = 101; //variable del numero a analaziar if ($numero%2==0){ //se asigna el comparador echo "el $numero como numero ingresado es par"; //mensaje si es par }else{ echo "el $numero como numero ingresado es impar"; //mensaje si es impar*/ }
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/HMDVH
function name:  (null)
number of ops:  14
compiled vars:  !0 = $numero
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 101
    4     1        MOD                                              ~2      !0, 2
          2        IS_EQUAL                                                 ~2, 0
          3      > JMPZ                                                     ~3, ->9
    5     4    >   ROPE_INIT                                     3  ~5      'el+'
          5        ROPE_ADD                                      1  ~5      ~5, !0
          6        ROPE_END                                      2  ~4      ~5, '+como+numero+ingresado+es+par'
          7        ECHO                                                     ~4
          8      > JMP                                                      ->13
    7     9    >   ROPE_INIT                                     3  ~8      'el+'
         10        ROPE_ADD                                      1  ~8      ~8, !0
         11        ROPE_END                                      2  ~7      ~8, '+como+numero+ingresado+es+impar'
         12        ECHO                                                     ~7
    8    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
274.7 ms | 1393 KiB | 14 Q