3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __($translate){ //does something to $translate echo $translate; } } $__ = array(new Test, '__'); echo $__('Translate me');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RuhPH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $__
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1
          3        ADD_ARRAY_ELEMENT                                ~3      '__'
          4        ASSIGN                                                   !0, ~3
   12     5        INIT_DYNAMIC_CALL                                        !0
          6        SEND_VAL_EX                                              'Translate+me'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Class Test:
Function __:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RuhPH
function name:  __
number of ops:  3
compiled vars:  !0 = $translate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        ECHO                                                     !0
    7     2      > RETURN                                                   null

End of function __

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.76 ms | 1393 KiB | 13 Q