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

End of function chrarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.97 ms | 1403 KiB | 27 Q