3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class baseClass { function __construct($foo) { echo "foo is ".$foo; } } class Child extends baseClass { } $child1 = new Child('bar'); $child2 = new Child();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rfb9
function name:  (null)
number of ops:  8
compiled vars:  !0 = $child1, !1 = $child2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $2      'Child'
          1        SEND_VAL_EX                                              'bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   18     4        NEW                                              $5      'Child'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $5
          7      > RETURN                                                   1

Class baseClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rfb9
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      'foo+is+', !0
          2        ECHO                                                     ~1
    8     3      > RETURN                                                   null

End of function __construct

End of class baseClass.

Class Child:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7rfb9
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      'foo+is+', !0
          2        ECHO                                                     ~1
    8     3      > RETURN                                                   null

End of function __construct

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.62 ms | 1448 KiB | 13 Q