3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(0); error_reporting (E_ALL ^ E_NOTICE); $url = "http://www.google.com"; $chars = array(0); $_ = fopen("codes.txt","w"); foreach ($chars as $a) { foreach ($chars as $b) { foreach ($chars as $c) { foreach ($chars as $d) { fwrite($_, "GOOGLE".$a.$b.$c.$d); $__ = curl_init($url.$a.$b.$c.$d); echo $__; curl_setopt($__, CURLOPT_HEADER, 1); curl_setopt($__, CURLOPT_NOBODY, 1); curl_setopt($__, CURLOPT_RETURNTRANSFER, 1); curl_exec($__); fwrite($_, " ".curl_getinfo($__, CURLINFO_CONTENT_LENGTH_DOWNLOAD)); echo curl_getinfo($__, CURLINFO_CONTENT_LENGTH_DOWNLOAD); fwrite($_, "\n"); } } } } fclose($_);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 86
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 86
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 84
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 84
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 82
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 82
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 80
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 80
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 80
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 80
Branch analysis from position: 82
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 82
Branch analysis from position: 84
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 84
Branch analysis from position: 86
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 86
filename:       /in/sgC6L
function name:  (null)
number of ops:  91
compiled vars:  !0 = $url, !1 = $chars, !2 = $_, !3 = $a, !4 = $b, !5 = $c, !6 = $d, !7 = $__
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'set_time_limit'
          1        SEND_VAL                                                 0
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'error_reporting'
          4        SEND_VAL                                                 32759
          5        DO_ICALL                                                 
    6     6        ASSIGN                                                   !0, 'http%3A%2F%2Fwww.google.com'
    7     7        ASSIGN                                                   !1, <array>
    8     8        INIT_FCALL                                               'fopen'
          9        SEND_VAL                                                 'codes.txt'
         10        SEND_VAL                                                 'w'
         11        DO_ICALL                                         $12     
         12        ASSIGN                                                   !2, $12
   10    13      > FE_RESET_R                                       $14     !1, ->86
         14    > > FE_FETCH_R                                               $14, !3, ->86
   11    15    > > FE_RESET_R                                       $15     !1, ->84
         16    > > FE_FETCH_R                                               $15, !4, ->84
   12    17    > > FE_RESET_R                                       $16     !1, ->82
         18    > > FE_FETCH_R                                               $16, !5, ->82
   13    19    > > FE_RESET_R                                       $17     !1, ->80
         20    > > FE_FETCH_R                                               $17, !6, ->80
   14    21    >   INIT_FCALL                                               'fwrite'
         22        SEND_VAR                                                 !2
         23        CONCAT                                           ~18     'GOOGLE', !3
         24        CONCAT                                           ~19     ~18, !4
         25        CONCAT                                           ~20     ~19, !5
         26        CONCAT                                           ~21     ~20, !6
         27        SEND_VAL                                                 ~21
         28        DO_ICALL                                                 
   15    29        INIT_FCALL_BY_NAME                                       'curl_init'
         30        CONCAT                                           ~23     !0, !3
         31        CONCAT                                           ~24     ~23, !4
         32        CONCAT                                           ~25     ~24, !5
         33        CONCAT                                           ~26     ~25, !6
         34        SEND_VAL_EX                                              ~26
         35        DO_FCALL                                      0  $27     
         36        ASSIGN                                                   !7, $27
   16    37        ECHO                                                     !7
   17    38        INIT_FCALL_BY_NAME                                       'curl_setopt'
         39        SEND_VAR_EX                                              !7
         40        FETCH_CONSTANT                                   ~29     'CURLOPT_HEADER'
         41        SEND_VAL_EX                                              ~29
         42        SEND_VAL_EX                                              1
         43        DO_FCALL                                      0          
   18    44        INIT_FCALL_BY_NAME                                       'curl_setopt'
         45        SEND_VAR_EX                                              !7
         46        FETCH_CONSTANT                                   ~31     'CURLOPT_NOBODY'
         47        SEND_VAL_EX                                              ~31
         48        SEND_VAL_EX                                              1
         49        DO_FCALL                                      0          
   19    50        INIT_FCALL_BY_NAME                                       'curl_setopt'
         51        SEND_VAR_EX                                              !7
         52        FETCH_CONSTANT                                   ~33     'CURLOPT_RETURNTRANSFER'
         53        SEND_VAL_EX                                              ~33
         54        SEND_VAL_EX                                              1
         55        DO_FCALL                                      0          
   20    56        INIT_FCALL_BY_NAME                                       'curl_exec'
         57        SEND_VAR_EX                                              !7
         58        DO_FCALL                                      0          
   21    59        INIT_FCALL                                               'fwrite'
         60        SEND_VAR                                                 !2
         61        INIT_FCALL_BY_NAME                                       'curl_getinfo'
         62        SEND_VAR_EX                                              !7
         63        FETCH_CONSTANT                                   ~36     'CURLINFO_CONTENT_LENGTH_DOWNLOAD'
         64        SEND_VAL_EX                                              ~36
         65        DO_FCALL                                      0  $37     
         66        CONCAT                                           ~38     '+', $37
         67        SEND_VAL                                                 ~38
         68        DO_ICALL                                                 
   22    69        INIT_FCALL_BY_NAME                                       'curl_getinfo'
         70        SEND_VAR_EX                                              !7
         71        FETCH_CONSTANT                                   ~40     'CURLINFO_CONTENT_LENGTH_DOWNLOAD'
         72        SEND_VAL_EX                                              ~40
         73        DO_FCALL                                      0  $41     
         74        ECHO                                                     $41
   23    75        INIT_FCALL                                               'fwrite'
         76        SEND_VAR                                                 !2
         77        SEND_VAL                                                 '%0A'
         78        DO_ICALL                                                 
   13    79      > JMP                                                      ->20
         80    >   FE_FREE                                                  $17
   12    81      > JMP                                                      ->18
         82    >   FE_FREE                                                  $16
   11    83      > JMP                                                      ->16
         84    >   FE_FREE                                                  $15
   10    85      > JMP                                                      ->14
         86    >   FE_FREE                                                  $14
   28    87        INIT_FCALL                                               'fclose'
         88        SEND_VAR                                                 !2
         89        DO_ICALL                                                 
         90      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.2 ms | 1404 KiB | 23 Q