3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hello() {}; $range = range(1,100000); $start = microtime(true); foreach ($range as $item) { hello(); } var_dump(microtime(true) - $start);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/Mi7hM
function name:  (null)
number of ops:  23
compiled vars:  !0 = $range, !1 = $start, !2 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 100000
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9      > FE_RESET_R                                       $7      !0, ->14
         10    > > FE_FETCH_R                                               $7, !2, ->14
    6    11    >   INIT_FCALL                                               'hello'
         12        DO_FCALL                                      0          
    5    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $7
    8    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $9      
         19        SUB                                              ~10     $9, !1
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

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

End of function hello

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.31 ms | 1403 KiB | 20 Q