3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Flickr; class Datamapper { public function __construct() { echo 'Hello world'; } } $classname = 'Flickr\Datamapper'; $obj = new $classname();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oi8Ld
function name:  (null)
number of ops:  6
compiled vars:  !0 = $classname, !1 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 'Flickr%5CDatamapper'
   13     1        FETCH_CLASS                                   0  $3      !0
          2        NEW                                              $4      $3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
          5      > RETURN                                                   1

Class Flickr\Datamapper:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oi8Ld
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'Hello+world'
    9     1      > RETURN                                                   null

End of function __construct

End of class Flickr\Datamapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.67 ms | 1441 KiB | 13 Q