3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App; class Model { public static function go() { echo 'yay!'; } } $someString = 'Model'; $className = 'App\\' . $someString; var_dump(new $className()); $className::go();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/78VkL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $someString, !1 = $className
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'Model'
   12     1        CONCAT                                           ~3      'App%5C', !0
          2        ASSIGN                                                   !1, ~3
   13     3        INIT_NS_FCALL_BY_NAME                                    'App%5Cvar_dump'
          4        FETCH_CLASS                                   0  $5      !1
          5        NEW                                              $6      $5
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $6
          8        DO_FCALL                                      0          
   14     9        FETCH_CLASS                                   0  $9      !1
         10        INIT_STATIC_METHOD_CALL                                  $9, 'go'
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class App\Model:
Function go:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/78VkL
function name:  go
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'yay%21'
    8     1      > RETURN                                                   null

End of function go

End of class App\Model.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.29 ms | 1436 KiB | 14 Q