3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Filter { // A constructor in PHP 4 and 5 function __construct(int $a) { echo $a; } } $o1 = new Filter(5); $o2 = new Filter('a');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HR4cS
function name:  (null)
number of ops:  9
compiled vars:  !0 = $o1, !1 = $o2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'Filter'
          1        SEND_VAL_EX                                              5
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   11     4        NEW                                              $5      'Filter'
          5        SEND_VAL_EX                                              'a'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
          8      > RETURN                                                   1

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

End of function __construct

End of class Filter.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.64 ms | 1397 KiB | 13 Q