3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static public function StaticRawr() { echo 'Rawr from static!'; } public $name = ''; public function Rawr() { echo 'Rawr! ' . $name; } } $rawrStatic = 'Test::StaticRawr'; $rawrStatic(); $testObj = new Test; $testObj['name'] = 'Вася'; $rawrObj = [$testObj, 'Rawr']; $rawrObj();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvTlL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $rawrStatic, !1 = $testObj, !2 = $rawrObj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   ASSIGN                                                   !0, 'Test%3A%3AStaticRawr'
   19     1        INIT_DYNAMIC_CALL                                        !0
          2        DO_FCALL                                      0          
   21     3        NEW                                              $5      'Test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   22     6        ASSIGN_DIM                                               !1, 'name'
          7        OP_DATA                                                  '%D0%92%D0%B0%D1%81%D1%8F'
   24     8        INIT_ARRAY                                       ~9      !1
          9        ADD_ARRAY_ELEMENT                                ~9      'Rawr'
         10        ASSIGN                                                   !2, ~9
   25    11        INIT_DYNAMIC_CALL                                        !2
         12        DO_FCALL                                      0          
         13      > RETURN                                                   1

Class Test:
Function staticrawr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvTlL
function name:  StaticRawr
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'Rawr+from+static%21'
    8     1      > RETURN                                                   null

End of function staticrawr

Function rawr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XvTlL
function name:  Rawr
number of ops:  3
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   CONCAT                                           ~1      'Rawr%21+', !0
          1        ECHO                                                     ~1
   15     2      > RETURN                                                   null

End of function rawr

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
307.26 ms | 1394 KiB | 14 Q