3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encriptar_email($email) { $partes = str_split(trim($email)); $nuevo = ''; foreach ($partes as $valor) { $nuevo .= '&#'.ord($valor).';'; } return $nuevo; } echo chr(encriptar_email('abc123 sasd ewrqewr werewr wererw'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kl38R
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'chr'
          1        INIT_FCALL                                               'encriptar_email'
          2        SEND_VAL                                                 'abc123+sasd+ewrqewr+werewr+wererw'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                         $1      
          6        ECHO                                                     $1
          7      > RETURN                                                   1

Function encriptar_email:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 18
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 18
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/Kl38R
function name:  encriptar_email
number of ops:  21
compiled vars:  !0 = $email, !1 = $partes, !2 = $nuevo, !3 = $valor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'str_split'
          2        INIT_FCALL                                               'trim'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        SEND_VAR                                                 $4
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    4     8        ASSIGN                                                   !2, ''
    5     9      > FE_RESET_R                                       $8      !1, ->18
         10    > > FE_FETCH_R                                               $8, !3, ->18
    6    11    >   INIT_FCALL                                               'ord'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $9      
         14        CONCAT                                           ~10     '%26%23', $9
         15        CONCAT                                           ~11     ~10, '%3B'
         16        ASSIGN_OP                                     8          !2, ~11
    5    17      > JMP                                                      ->10
         18    >   FE_FREE                                                  $8
    8    19      > RETURN                                                   !2
    9    20*     > RETURN                                                   null

End of function encriptar_email

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1399 KiB | 22 Q