3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = 'contact@mbaquitaine.fr'; $encoded_email = ''; for($i=0,$l=strlen($email);$i<$l;$i++) { $encoded_email .= '%'.dechex(ord(substr($email,$i,1))); } echo $encoded_email;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 6
Branch analysis from position: 22
Branch analysis from position: 6
filename:       /in/Y2vmX
function name:  (null)
number of ops:  24
compiled vars:  !0 = $email, !1 = $encoded_email, !2 = $i, !3 = $l
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'contact%40mbaquitaine.fr'
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, 0
          3        STRLEN                                           ~7      !0
          4        ASSIGN                                                   !3, ~7
          5      > JMP                                                      ->20
    6     6    >   INIT_FCALL                                               'dechex'
          7        INIT_FCALL                                               'ord'
          8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $9      
         13        SEND_VAR                                                 $9
         14        DO_ICALL                                         $10     
         15        SEND_VAR                                                 $10
         16        DO_ICALL                                         $11     
         17        CONCAT                                           ~12     '%25', $11
         18        ASSIGN_OP                                     8          !1, ~12
    5    19        PRE_INC                                                  !2
         20    >   IS_SMALLER                                               !2, !3
         21      > JMPNZ                                                    ~15, ->6
    8    22    >   ECHO                                                     !1
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.39 ms | 1395 KiB | 19 Q