3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x(){ //some loooong calculation return 42; } for($n = 0;$n < 100; $n++ ){ $x = x(); echo $x; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 2
Branch analysis from position: 9
Branch analysis from position: 2
filename:       /in/vBOuq
function name:  (null)
number of ops:  10
compiled vars:  !0 = $n, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->7
    9     2    >   INIT_FCALL                                               'x'
          3        DO_FCALL                                      0  $3      
          4        ASSIGN                                                   !1, $3
   10     5        ECHO                                                     !1
    8     6        PRE_INC                                                  !0
          7    >   IS_SMALLER                                               !0, 100
          8      > JMPNZ                                                    ~6, ->2
   11     9    > > RETURN                                                   1

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

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.64 ms | 1397 KiB | 14 Q