3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.oseox.fr'; $timeout = 10; $ch = curl_init($url); curl_setopt($ch, CURLOPT_FRESH_CONNECT, true); curl_setopt($ch, CURLOPT_TIMEOUT, $timeout); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); if (preg_match('`^https://`i', $url)) { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); } curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Définition du header "User-Agent:" // Simulation d'un Firefox 3.6.13 curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.1; fr; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13'); $page_content = curl_exec($ch); curl_close($ch); echo $page_content; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 41
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/3lfgv
function name:  (null)
number of ops:  68
compiled vars:  !0 = $url, !1 = $timeout, !2 = $ch, !3 = $page_content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.oseox.fr'
    4     1        ASSIGN                                                   !1, 10
    6     2        INIT_FCALL_BY_NAME                                       'curl_init'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $6      
          5        ASSIGN                                                   !2, $6
    8     6        INIT_FCALL_BY_NAME                                       'curl_setopt'
          7        SEND_VAR_EX                                              !2
          8        FETCH_CONSTANT                                   ~8      'CURLOPT_FRESH_CONNECT'
          9        SEND_VAL_EX                                              ~8
         10        SEND_VAL_EX                                              <true>
         11        DO_FCALL                                      0          
    9    12        INIT_FCALL_BY_NAME                                       'curl_setopt'
         13        SEND_VAR_EX                                              !2
         14        FETCH_CONSTANT                                   ~10     'CURLOPT_TIMEOUT'
         15        SEND_VAL_EX                                              ~10
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0          
   10    18        INIT_FCALL_BY_NAME                                       'curl_setopt'
         19        SEND_VAR_EX                                              !2
         20        FETCH_CONSTANT                                   ~12     'CURLOPT_CONNECTTIMEOUT'
         21        SEND_VAL_EX                                              ~12
         22        SEND_VAR_EX                                              !1
         23        DO_FCALL                                      0          
   12    24        INIT_FCALL                                               'preg_match'
         25        SEND_VAL                                                 '%60%5Ehttps%3A%2F%2F%60i'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $14     
         28      > JMPZ                                                     $14, ->41
   14    29    >   INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !2
         31        FETCH_CONSTANT                                   ~15     'CURLOPT_SSL_VERIFYPEER'
         32        SEND_VAL_EX                                              ~15
         33        SEND_VAL_EX                                              <false>
         34        DO_FCALL                                      0          
   15    35        INIT_FCALL_BY_NAME                                       'curl_setopt'
         36        SEND_VAR_EX                                              !2
         37        FETCH_CONSTANT                                   ~17     'CURLOPT_SSL_VERIFYHOST'
         38        SEND_VAL_EX                                              ~17
         39        SEND_VAL_EX                                              0
         40        DO_FCALL                                      0          
   18    41    >   INIT_FCALL_BY_NAME                                       'curl_setopt'
         42        SEND_VAR_EX                                              !2
         43        FETCH_CONSTANT                                   ~19     'CURLOPT_FOLLOWLOCATION'
         44        SEND_VAL_EX                                              ~19
         45        SEND_VAL_EX                                              <true>
         46        DO_FCALL                                      0          
   19    47        INIT_FCALL_BY_NAME                                       'curl_setopt'
         48        SEND_VAR_EX                                              !2
         49        FETCH_CONSTANT                                   ~21     'CURLOPT_RETURNTRANSFER'
         50        SEND_VAL_EX                                              ~21
         51        SEND_VAL_EX                                              <true>
         52        DO_FCALL                                      0          
   23    53        INIT_FCALL_BY_NAME                                       'curl_setopt'
         54        SEND_VAR_EX                                              !2
         55        FETCH_CONSTANT                                   ~23     'CURLOPT_USERAGENT'
         56        SEND_VAL_EX                                              ~23
         57        SEND_VAL_EX                                              'Mozilla%2F5.0+%28Windows%3B+U%3B+Windows+NT+6.1%3B+fr%3B+rv%3A1.9.2.13%29+Gecko%2F20101203+Firefox%2F3.6.13'
         58        DO_FCALL                                      0          
   25    59        INIT_FCALL_BY_NAME                                       'curl_exec'
         60        SEND_VAR_EX                                              !2
         61        DO_FCALL                                      0  $25     
         62        ASSIGN                                                   !3, $25
   27    63        INIT_FCALL_BY_NAME                                       'curl_close'
         64        SEND_VAR_EX                                              !2
         65        DO_FCALL                                      0          
   29    66        ECHO                                                     !3
   31    67      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.22 ms | 1400 KiB | 15 Q