3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myurl = "http://www.geoplugin.net/currency_converter.gp?from=USD&to=MXN&amount=1"; if ($dh = @fopen("$myurl",'r')) echo "bonjour"; else echo "NOT GOOD"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eFUWe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $myurl, !1 = $dh
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.geoplugin.net%2Fcurrency_converter.gp%3Ffrom%3DUSD%26to%3DMXN%26amount%3D1'
    6     1        BEGIN_SILENCE                                    ~3      
          2        INIT_FCALL                                               'fopen'
          3        CAST                                          6  ~4      !0
          4        SEND_VAL                                                 ~4
          5        SEND_VAL                                                 'r'
          6        DO_ICALL                                         $5      
          7        END_SILENCE                                              ~3
          8        ASSIGN                                           ~6      !1, $5
          9      > JMPZ                                                     ~6, ->12
    7    10    >   ECHO                                                     'bonjour'
         11      > JMP                                                      ->13
    9    12    >   ECHO                                                     'NOT++GOOD'
   11    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.69 ms | 1394 KiB | 15 Q