3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_function_1() { echo "1"; } function my_function_2() { echo "2"; } function my_function_3() { echo "3"; } $calling = 'my_function_'; for($i=0;$i<$length;$i++) { $calling = 'my_function_'.$i; $calling(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/50s8D
function name:  (null)
number of ops:  11
compiled vars:  !0 = $calling, !1 = $i, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ASSIGN                                                   !0, 'my_function_'
   17     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
   19     3    >   CONCAT                                           ~5      'my_function_', !1
          4        ASSIGN                                                   !0, ~5
   20     5        INIT_DYNAMIC_CALL                                        !0
          6        DO_FCALL                                      0          
   17     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, !2
          9      > JMPNZ                                                    ~9, ->3
   23    10    > > RETURN                                                   1

Function my_function_1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50s8D
function name:  my_function_1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '1'
    5     1      > RETURN                                                   null

End of function my_function_1

Function my_function_2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/50s8D
function name:  my_function_2
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     '2'
    9     1      > RETURN                                                   null

End of function my_function_2

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

End of function my_function_3

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.51 ms | 1395 KiB | 13 Q