3v4l.org

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

Function ordarray:
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/fWWq9
function name:  ordArray
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 ordarray

Function chrarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/fWWq9
function name:  chrArray
number of ops:  26
compiled vars:  !0 = $email, !1 = $partes, !2 = $nuevo, !3 = $valor
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     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
   13     8        ASSIGN                                                   !2, ''
   14     9      > FE_RESET_R                                       $8      !1, ->23
         10    > > FE_FETCH_R                                               $8, !3, ->23
   15    11    >   INIT_FCALL                                               'chr'
         12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 2
         15        STRLEN                                           ~9      !3
         16        SUB                                              ~10     ~9, 1
         17        SEND_VAL                                                 ~10
         18        DO_ICALL                                         $11     
         19        SEND_VAR                                                 $11
         20        DO_ICALL                                         $12     
         21        ASSIGN_OP                                     8          !2, $12
   14    22      > JMP                                                      ->10
         23    >   FE_FREE                                                  $8
   17    24      > RETURN                                                   !2
   18    25*     > RETURN                                                   null

End of function chrarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.36 ms | 1402 KiB | 25 Q