3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomethingClass{ public static function somethingMethod($arg){ //return "Now I'm a class static!". $arg; return "Now I'a instace the a class"; } } $arg = "Arguments"; $instanceSomeThing = new SomethingClass(); print $instanceSomeThing->somethingMethod($arg); //print SomethingClass::somethingMethod($arg);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnMil
function name:  (null)
number of ops:  9
compiled vars:  !0 = $arg, !1 = $instanceSomeThing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Arguments'
    9     1        NEW                                              $3      'SomethingClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   10     4        INIT_METHOD_CALL                                         !1, 'somethingMethod'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $6      
          7        ECHO                                                     $6
   12     8      > RETURN                                                   1

Class SomethingClass:
Function somethingmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnMil
function name:  somethingMethod
number of ops:  3
compiled vars:  !0 = $arg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   'Now+I%27a+instace+the+a+class'
    6     2*     > RETURN                                                   null

End of function somethingmethod

End of class SomethingClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.29 ms | 1397 KiB | 13 Q