3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassVarsManager { private function VarExportFormat($data) { return '*' . $data . '*'; } public function VarExport(...$var) { echo PRES , implode(EOL_SYS, array_map([$this, 'VarExportFormat'], $var)) , PREE; } } define('PRES', '<pre>'); define('PREE', '</pre>'); define('EOL_SYS', "\n"); $obj = new ClassVarsManager(); $obj->VarExport('one', 'two', 'three');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OMZaM
function name:  (null)
number of ops:  21
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'PRES'
          2        SEND_VAL                                                 '%3Cpre%3E'
          3        DO_ICALL                                                 
   14     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'PREE'
          6        SEND_VAL                                                 '%3C%2Fpre%3E'
          7        DO_ICALL                                                 
   15     8        INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'EOL_SYS'
         10        SEND_VAL                                                 '%0A'
         11        DO_ICALL                                                 
   17    12        NEW                                              $4      'ClassVarsManager'
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !0, $4
   18    15        INIT_METHOD_CALL                                         !0, 'VarExport'
         16        SEND_VAL_EX                                              'one'
         17        SEND_VAL_EX                                              'two'
         18        SEND_VAL_EX                                              'three'
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Class ClassVarsManager:
Function varexportformat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OMZaM
function name:  VarExportFormat
number of ops:  5
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        CONCAT                                           ~1      '%2A', !0
          2        CONCAT                                           ~2      ~1, '%2A'
          3      > RETURN                                                   ~2
    6     4*     > RETURN                                                   null

End of function varexportformat

Function varexport:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OMZaM
function name:  VarExport
number of ops:  19
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV_VARIADIC                                    !0      
    9     1        FETCH_CONSTANT                                   ~1      'PRES'
          2        ECHO                                                     ~1
          3        INIT_FCALL                                               'implode'
          4        FETCH_CONSTANT                                   ~2      'EOL_SYS'
          5        SEND_VAL                                                 ~2
          6        INIT_FCALL                                               'array_map'
          7        FETCH_THIS                                       ~3      
          8        INIT_ARRAY                                       ~4      ~3
          9        ADD_ARRAY_ELEMENT                                ~4      'VarExportFormat'
         10        SEND_VAL                                                 ~4
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        SEND_VAR                                                 $5
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16        FETCH_CONSTANT                                   ~7      'PREE'
         17        ECHO                                                     ~7
   10    18      > RETURN                                                   null

End of function varexport

End of class ClassVarsManager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.01 ms | 1005 KiB | 16 Q