3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pepe { const LITO = 'hola'; static function dame($a) { echo constnat("static::".strtoupper($a)); } } Pepe::dame('lito');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IiZBk
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'Pepe', 'dame'
          1        SEND_VAL                                                 'lito'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Class Pepe:
Function dame:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IiZBk
function name:  dame
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL_BY_NAME                                       'constnat'
          2        INIT_FCALL                                               'strtoupper'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        CONCAT                                           ~2      'static%3A%3A', $1
          6        SEND_VAL_EX                                              ~2
          7        DO_FCALL                                      0  $3      
          8        ECHO                                                     $3
    9     9      > RETURN                                                   null

End of function dame

End of class Pepe.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1394 KiB | 15 Q