3v4l.org

run code in 500+ PHP versions simultaneously
<?php final class KeepSelfClassStaticCall { public function run() { return self::class::sampleClass(); } private function sampleClass() { return 'very creative'; } } $obj = new KeepSelfClassStaticCall(); var_dump($obj->run());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j07fn
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   NEW                                                  $1      'KeepSelfClassStaticCall'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   18     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'run'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR                                                     $4
          7        DO_ICALL                                                     
          8      > RETURN                                                       1

Class KeepSelfClassStaticCall:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j07fn
function name:  run
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_STATIC_METHOD_CALL                                      'KeepSelfClassStaticCall', 'sampleClass'
          1        DO_FCALL                                          0  $0      
          2      > RETURN                                                       $0
    8     3*     > RETURN                                                       null

End of function run

Function sampleclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j07fn
function name:  sampleClass
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                       'very+creative'
   13     1*     > RETURN                                                       null

End of function sampleclass

End of class KeepSelfClassStaticCall.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.56 ms | 1369 KiB | 14 Q