3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $options = [ 'exceptions' => true, ]; $client = new \SoapClient('http://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl', $options); } catch (\Exception $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZ8Qn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $options, !1 = $client, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    7     1        NEW                                              $4      'SoapClient'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fws.cdyne.com%2Fip2geo%2Fip2geo.asmx%3Fwsdl'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $4
          6      > JMP                                                      ->11
    8     7  E > > CATCH                                       last         'Exception'
    9     8    >   INIT_METHOD_CALL                                         !2, 'getMessage'
          9        DO_FCALL                                      0  $7      
         10        ECHO                                                     $7
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.94 ms | 1397 KiB | 13 Q