3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); ini_set('display_errors',1); ini_set('log_errors',0); class Text { function run() { eval('static::echo_data(\'test\');'); } protected static function echo_data($data) { echo htmlspecialchars($data, ENT_NOQUOTES); } } for ($i=0;$i<70;$i++){ $test = new Text; $test->run(); echo("\n"); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 13
Branch analysis from position: 22
Branch analysis from position: 13
filename:       /in/kqA7A
function name:  (null)
number of ops:  23
compiled vars:  !0 = $i, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'ini_set'
          4        SEND_VAL                                                 'display_errors'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'ini_set'
          8        SEND_VAL                                                 'log_errors'
          9        SEND_VAL                                                 0
         10        DO_ICALL                                                 
   16    11        ASSIGN                                                   !0, 0
         12      > JMP                                                      ->20
   17    13    >   NEW                                              $6      'Text'
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $6
   18    16        INIT_METHOD_CALL                                         !1, 'run'
         17        DO_FCALL                                      0          
   19    18        ECHO                                                     '%0A'
   16    19        PRE_INC                                                  !0
         20    >   IS_SMALLER                                               !0, 70
         21      > JMPNZ                                                    ~11, ->13
   21    22    > > RETURN                                                   1

Class Text:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kqA7A
function name:  run
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INCLUDE_OR_EVAL                                          'static%3A%3Aecho_data%28%27test%27%29%3B', EVAL
   10     1      > RETURN                                                   null

End of function run

Function echo_data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kqA7A
function name:  echo_data
number of ops:  7
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $1      
          5        ECHO                                                     $1
   14     6      > RETURN                                                   null

End of function echo_data

End of class Text.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177 ms | 1400 KiB | 19 Q