3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($a) { $sc = new SoapClient(null, array('location' => "http://fizzle/does-not-exist.php", 'uri' => "http://does-not-exit-uri/")); try { var_dump($sc->NotASoapFunction()); } catch (Exception $e) { echo "Caught exception\n"; } var_dump((string)strtoupper($a)); } foo("bar");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sf41i
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'foo'
          1        SEND_VAL                                                 'bar'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sf41i
function name:  foo
number of ops:  22
compiled vars:  !0 = $a, !1 = $sc, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        NEW                                              $3      'SoapClient'
          2        SEND_VAL_EX                                              null
    6     3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0          
    4     5        ASSIGN                                                   !1, $3
    9     6        INIT_FCALL                                               'var_dump'
          7        INIT_METHOD_CALL                                         !1, 'NotASoapFunction'
          8        DO_FCALL                                      0  $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
         11      > JMP                                                      ->14
   10    12  E > > CATCH                                       last         'Exception'
   11    13    >   ECHO                                                     'Caught+exception%0A'
   13    14    >   INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'strtoupper'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $8      
         18        CAST                                          6  ~9      $8
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                                 
   14    21      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.08 ms | 1399 KiB | 18 Q