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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.88 ms | 1403 KiB | 18 Q