3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Hello { public function __construct(string $hello, int $k) { $this->hello = $hello; $this->k = $k; } } try { $hello = new Hello(123, 'ss'); } catch (\Throwable $e) { // echo $e; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
filename:       /in/fct4h
function name:  (null)
number of ops:  8
compiled vars:  !0 = $hello, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Hello'
          1        SEND_VAL_EX                                              123
          2        SEND_VAL_EX                                              'ss'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
          5      > JMP                                                      ->7
   13     6  E > > CATCH                                       last         'Throwable'
   15     7    > > RETURN                                                   1

Class Hello:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fct4h
function name:  __construct
number of ops:  7
compiled vars:  !0 = $hello, !1 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ASSIGN_OBJ                                               'hello'
          3        OP_DATA                                                  !0
    8     4        ASSIGN_OBJ                                               'k'
          5        OP_DATA                                                  !1
    9     6      > RETURN                                                   null

End of function __construct

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.35 ms | 1393 KiB | 13 Q