3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wikipediaURL = 'http://fr.wikipedia.org/wiki/Megadeth'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $wikipediaURL); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Le blog de Samy Dindane (www.dinduks.com)'); $resultat = curl_exec ($ch); curl_close($ch);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LLf91
function name:  (null)
number of ops:  30
compiled vars:  !0 = $wikipediaURL, !1 = $ch, !2 = $resultat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Ffr.wikipedia.org%2Fwiki%2FMegadeth'
    3     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $4      
          3        ASSIGN                                                   !1, $4
    4     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !1
          6        FETCH_CONSTANT                                   ~6      'CURLOPT_URL'
          7        SEND_VAL_EX                                              ~6
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    5    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~8      'CURLOPT_RETURNTRANSFER'
         13        SEND_VAL_EX                                              ~8
         14        SEND_VAL_EX                                              1
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~10     'CURLOPT_USERAGENT'
         19        SEND_VAL_EX                                              ~10
         20        SEND_VAL_EX                                              'Le+blog+de+Samy+Dindane+%28www.dinduks.com%29'
         21        DO_FCALL                                      0          
    7    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $12     
         25        ASSIGN                                                   !2, $12
    8    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.39 ms | 1394 KiB | 13 Q