3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "start\n"; try { $test = new SoapClient ('http://www.example.com/',array('exceptions'=>true)); } catch (Exception $e) { echo "Caught exception\n"; } echo "end\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
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/9IIb8
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     'start%0A'
    5     1        NEW                                              $2      'SoapClient'
          2        SEND_VAL_EX                                              'http%3A%2F%2Fwww.example.com%2F'
          3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > JMP                                                      ->9
    6     7  E > > CATCH                                       last         'Exception'
    7     8    >   ECHO                                                     'Caught+exception%0A'
   10     9    >   ECHO                                                     'end%0A'
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1393 KiB | 13 Q