3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Filter { // A constructor in PHP 4 and 5 function __construct(int $a) { echo $a; } } try { $o1 = new Filter(5); $o2 = new Filter('5'); } catch (Error $e) { echo "Exception propre: {$e->getMessage()}\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJufv
function name:  (null)
number of ops:  17
compiled vars:  !0 = $o1, !1 = $o2, !2 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $3      'Filter'
          1        SEND_VAL_EX                                              5
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
   13     4        NEW                                              $6      'Filter'
          5        SEND_VAL_EX                                              '5'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
          8      > JMP                                                      ->16
   14     9  E > > CATCH                                       last         'Error'
   15    10    >   ROPE_INIT                                     3  ~11     'Exception+propre%3A+'
         11        INIT_METHOD_CALL                                         !2, 'getMessage'
         12        DO_FCALL                                      0  $9      
         13        ROPE_ADD                                      1  ~11     ~11, $9
         14        ROPE_END                                      2  ~10     ~11, '%0A'
         15        ECHO                                                     ~10
   16    16    > > RETURN                                                   1

Class Filter:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eJufv
function name:  __construct
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     !0
    9     2      > RETURN                                                   null

End of function __construct

End of class Filter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.54 ms | 1385 KiB | 13 Q