3v4l.org

run code in 300+ PHP versions simultaneously
<pre><?php $urls = array( 'http://mail1.konsulterna.nu/~konsulternatool/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id', 'http://konsulterna.nu/k_Upd_dev_2/request.php?type=lst&index=l1&ref=esperia.nu&lst_id'); foreach ($urls as $url) { $response = file_get_contents($url); $json = json_decode($response); printf("url: %s, last_error: %d\n", $url, json_last_error()); } ?></pre>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 20
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 20
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/s0gO9
function name:  (null)
number of ops:  23
compiled vars:  !0 = $urls, !1 = $url, !2 = $response, !3 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cpre%3E'
    3     1        ASSIGN                                                   !0, <array>
    6     2      > FE_RESET_R                                       $5      !0, ->20
          3    > > FE_FETCH_R                                               $5, !1, ->20
    7     4    >   INIT_FCALL                                               'file_get_contents'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    8     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
    9    12        INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 'url%3A+%25s%2C+last_error%3A+%25d%0A'
         14        SEND_VAR                                                 !1
         15        INIT_FCALL                                               'json_last_error'
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                                 
    6    19      > JMP                                                      ->3
         20    >   FE_FREE                                                  $5
   12    21        ECHO                                                     '%3C%2Fpre%3E'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.6 ms | 1395 KiB | 21 Q