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) { echo $email; $partes = str_split(trim($email, '&#32;')); $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/SfZjI
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     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/SfZjI
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 = 12, Position 2 = 25
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 25
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/SfZjI
function name:  chrArray
number of ops:  28
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        ECHO                                                     !0
   13     2        INIT_FCALL                                               'str_split'
          3        INIT_FCALL                                               'trim'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 '%26%2332%3B'
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
   14    10        ASSIGN                                                   !2, ''
   15    11      > FE_RESET_R                                       $8      !1, ->25
         12    > > FE_FETCH_R                                               $8, !3, ->25
   19    13    >   INIT_FCALL                                               'chr'
         14        INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 2
         17        STRLEN                                           ~9      !3
         18        SUB                                              ~10     ~9, 1
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                         $12     
         23        ASSIGN_OP                                     8          !2, $12
   15    24      > JMP                                                      ->12
         25    >   FE_FREE                                                  $8
   21    26      > RETURN                                                   !2
   22    27*     > RETURN                                                   null

End of function chrarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.1 ms | 1403 KiB | 25 Q