3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class A { } class B { public function __construct($type) { new $type; } } new A; new B('A');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BlAm6
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $0      'Foo%5CBar%5CA'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
   18     3        NEW                                              $2      'Foo%5CBar%5CB'
          4        SEND_VAL_EX                                              'A'
          5        DO_FCALL                                      0          
          6        FREE                                                     $2
          7      > RETURN                                                   1

Class Foo\Bar\A: [no user functions]
Class Foo\Bar\B:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BlAm6
function name:  __construct
number of ops:  6
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        FETCH_CLASS                                   0  $1      !0
          2        NEW                                              $2      $1
          3        DO_FCALL                                      0          
          4        FREE                                                     $2
   14     5      > RETURN                                                   null

End of function __construct

End of class Foo\Bar\B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.75 ms | 1393 KiB | 13 Q