3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C1 {} interface I1 {} interface I2 {} $v2 = new class (100) extends C1 implements I1, I2 { public function __construct($p) { echo "Inside class " . __CLASS__ . " constructor with parameter $p\n"; } };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qquP0
function name:  (null)
number of ops:  6
compiled vars:  !0 = $v2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_ANON_CLASS                               <undef> 'c1'
          1        NEW                                              $2      $1
          2        SEND_VAL_EX                                              100
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   10     5      > RETURN                                                   1

Class C1: [no user functions]
Class I1: [no user functions]
Class I2: [no user functions]
Class C1@anonymous:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qquP0
function name:  __construct
number of ops:  7
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ROPE_INIT                                     3  ~2      '+constructor+with+parameter+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%0A'
          4        CONCAT                                           ~4      'Inside+class+C1%40anonymous%00%2Fin%2FqquP0%3A6%240', ~1
          5        ECHO                                                     ~4
    9     6      > RETURN                                                   null

End of function __construct

End of class C1@anonymous.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.17 ms | 1393 KiB | 13 Q