3v4l.org

run code in 300+ PHP versions simultaneously
<?php $destination = 'http://badurl/'; $params = array(); $url = $destination . '?' . http_build_query($params); $response = file_get_contents($url); if($response === false) { $error = error_get_last(); error_log("!: {$error["message"]}"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/pLhXn
function name:  (null)
number of ops:  24
compiled vars:  !0 = $destination, !1 = $params, !2 = $url, !3 = $response, !4 = $error
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fbadurl%2F'
    4     1        ASSIGN                                                   !1, <array>
    6     2        CONCAT                                           ~7      !0, '%3F'
          3        INIT_FCALL                                               'http_build_query'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $8      
          6        CONCAT                                           ~9      ~7, $8
          7        ASSIGN                                                   !2, ~9
    7     8        INIT_FCALL                                               'file_get_contents'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !3, $11
    8    12        TYPE_CHECK                                    4          !3
         13      > JMPZ                                                     ~13, ->23
   10    14    >   INIT_FCALL                                               'error_get_last'
         15        DO_ICALL                                         $14     
         16        ASSIGN                                                   !4, $14
   11    17        INIT_FCALL                                               'error_log'
         18        NOP                                                      
         19        FETCH_DIM_R                                      ~16     !4, 'message'
         20        FAST_CONCAT                                      ~17     '%21%3A+', ~16
         21        SEND_VAL                                                 ~17
         22        DO_ICALL                                                 
   12    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.72 ms | 1395 KiB | 21 Q