3v4l.org

run code in 300+ PHP versions simultaneously
<?php class BaseController { } class UserController extends BaseController { public function get($id) { echo "Get: $id"; } } UserController::$x = 'test'; echo UserController::$x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUg4p
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN_STATIC_PROP                                       'x', 'UserController'
          1        OP_DATA                                                  'test'
   16     2        FETCH_STATIC_PROP_R          unknown             ~1      'x'
          3        ECHO                                                     ~1
          4      > RETURN                                                   1

Class BaseController: [no user functions]
Class UserController:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUg4p
function name:  get
number of ops:  5
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Get%3A+', !0
          3        ECHO                                                     ~1
   11     4      > RETURN                                                   null

End of function get

End of class UserController.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.99 ms | 1393 KiB | 13 Q