3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo extends IntlTimeZone { public $foo = 'test'; public function __construct() { } } $x = new foo; try { $z = clone $x; } catch (Exception $e) { var_dump($e->getMessage()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
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/RAQ6t
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $z, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'foo', 'intltimezone'
    9     1        NEW                                              $3      'foo'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   12     4        CLONE                                            ~6      !0
          5        ASSIGN                                                   !1, ~6
          6      > JMP                                                      ->13
   13     7  E > > CATCH                                       last         'Exception'
   14     8    >   INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !2, 'getMessage'
         10        DO_FCALL                                      0  $8      
         11        SEND_VAR                                                 $8
         12        DO_ICALL                                                 
   15    13    > > RETURN                                                   1

Class foo:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RAQ6t
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   null

End of function __construct

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1395 KiB | 15 Q