3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<?php\n\n"; foreach (['e', 'f', 'n', 'r', 't', 'v'] as $c) { echo "define('\\\\{$c}', \"\\{$c}\");\n"; } for ($i = 0; $i < 256; $i++) { $str = str_pad(strtoupper(dechex($i)), 2, '0', STR_PAD_LEFT); $p1 = [$str[0]]; if ($str[0] >= 'A' && $str[0] <= 'F') { $p1[] = strtolower($str[0]); } $p2 = [$str[1]]; if ($str[1] >= 'A' && $str[1] <= 'F') { $p2[] = strtolower($str[1]); } foreach ($p1 as $c1) foreach ($p2 as $c2) echo "define('\\\\x{$c1}{$c2}', \"\\x{$str}\");\n"; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
2 jumps found. (Code = 44) Position 1 = 76, Position 2 = 13
Branch analysis from position: 76
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 32, Position 2 = 35
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 42
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 48, Position 2 = 51
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 58
Branch analysis from position: 52
2 jumps found. (Code = 77) Position 1 = 59, Position 2 = 72
Branch analysis from position: 59
2 jumps found. (Code = 78) Position 1 = 60, Position 2 = 72
Branch analysis from position: 60
2 jumps found. (Code = 77) Position 1 = 61, Position 2 = 70
Branch analysis from position: 61
2 jumps found. (Code = 78) Position 1 = 62, Position 2 = 70
Branch analysis from position: 62
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
Branch analysis from position: 70
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
Branch analysis from position: 70
Branch analysis from position: 72
2 jumps found. (Code = 44) Position 1 = 76, Position 2 = 13
Branch analysis from position: 76
Branch analysis from position: 13
Branch analysis from position: 72
Branch analysis from position: 58
Branch analysis from position: 51
Branch analysis from position: 42
Branch analysis from position: 35
Branch analysis from position: 10
filename:       /in/jv844
function name:  (null)
number of ops:  77
compiled vars:  !0 = $c, !1 = $i, !2 = $str, !3 = $p1, !4 = $p2, !5 = $c1, !6 = $c2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '%3C%3Fphp%0A%0A'
    5     1      > FE_RESET_R                                       $7      <array>, ->10
          2    > > FE_FETCH_R                                               $7, !0, ->10
    6     3    >   ROPE_INIT                                     5  ~9      'define%28%27%5C%5C'
          4        ROPE_ADD                                      1  ~9      ~9, !0
          5        ROPE_ADD                                      2  ~9      ~9, '%27%2C+%22%5C'
          6        ROPE_ADD                                      3  ~9      ~9, !0
          7        ROPE_END                                      4  ~8      ~9, '%22%29%3B%0A'
          8        ECHO                                                     ~8
    5     9      > JMP                                                      ->2
         10    >   FE_FREE                                                  $7
    9    11        ASSIGN                                                   !1, 0
         12      > JMP                                                      ->74
   10    13    >   INIT_FCALL                                               'str_pad'
         14        INIT_FCALL                                               'strtoupper'
         15        INIT_FCALL                                               'dechex'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $13     
         18        SEND_VAR                                                 $13
         19        DO_ICALL                                         $14     
         20        SEND_VAR                                                 $14
         21        SEND_VAL                                                 2
         22        SEND_VAL                                                 '0'
         23        SEND_VAL                                                 0
         24        DO_ICALL                                         $15     
         25        ASSIGN                                                   !2, $15
   12    26        FETCH_DIM_R                                      ~17     !2, 0
         27        INIT_ARRAY                                       ~18     ~17
         28        ASSIGN                                                   !3, ~18
   13    29        FETCH_DIM_R                                      ~20     !2, 0
         30        IS_SMALLER_OR_EQUAL                              ~21     'A', ~20
         31      > JMPZ_EX                                          ~21     ~21, ->35
         32    >   FETCH_DIM_R                                      ~22     !2, 0
         33        IS_SMALLER_OR_EQUAL                              ~23     ~22, 'F'
         34        BOOL                                             ~21     ~23
         35    > > JMPZ                                                     ~21, ->42
   14    36    >   INIT_FCALL                                               'strtolower'
         37        FETCH_DIM_R                                      ~25     !2, 0
         38        SEND_VAL                                                 ~25
         39        DO_ICALL                                         $26     
         40        ASSIGN_DIM                                               !3
         41        OP_DATA                                                  $26
   17    42    >   FETCH_DIM_R                                      ~27     !2, 1
         43        INIT_ARRAY                                       ~28     ~27
         44        ASSIGN                                                   !4, ~28
   18    45        FETCH_DIM_R                                      ~30     !2, 1
         46        IS_SMALLER_OR_EQUAL                              ~31     'A', ~30
         47      > JMPZ_EX                                          ~31     ~31, ->51
         48    >   FETCH_DIM_R                                      ~32     !2, 1
         49        IS_SMALLER_OR_EQUAL                              ~33     ~32, 'F'
         50        BOOL                                             ~31     ~33
         51    > > JMPZ                                                     ~31, ->58
   19    52    >   INIT_FCALL                                               'strtolower'
         53        FETCH_DIM_R                                      ~35     !2, 1
         54        SEND_VAL                                                 ~35
         55        DO_ICALL                                         $36     
         56        ASSIGN_DIM                                               !4
         57        OP_DATA                                                  $36
   22    58    > > FE_RESET_R                                       $37     !3, ->72
         59    > > FE_FETCH_R                                               $37, !5, ->72
         60    > > FE_RESET_R                                       $38     !4, ->70
         61    > > FE_FETCH_R                                               $38, !6, ->70
         62    >   ROPE_INIT                                     6  ~40     'define%28%27%5C%5Cx'
         63        ROPE_ADD                                      1  ~40     ~40, !5
         64        ROPE_ADD                                      2  ~40     ~40, !6
         65        ROPE_ADD                                      3  ~40     ~40, '%27%2C+%22%5Cx'
         66        ROPE_ADD                                      4  ~40     ~40, !2
         67        ROPE_END                                      5  ~39     ~40, '%22%29%3B%0A'
         68        ECHO                                                     ~39
         69      > JMP                                                      ->61
         70    >   FE_FREE                                                  $38
         71      > JMP                                                      ->59
         72    >   FE_FREE                                                  $37
    9    73        PRE_INC                                                  !1
         74    >   IS_SMALLER                                               !1, 256
         75      > JMPNZ                                                    ~44, ->13
   23    76    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.72 ms | 1471 KiB | 17 Q