3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Test Source function Test5_2() { /* The Test */ $t = microtime(true); $i = 0; while($i < 1000000) ++$i; return (microtime(true) - $t); }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/q8OVJ
function name:  (null)
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   NOP                                                      
  11     1      > RETURN                                                   1

Function test5_2:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 7
Branch analysis from position: 7
Jump found. Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = 9, Position 2 = 6
Branch analysis from position: 9
Branch analysis from position: 6
filename:       /in/q8OVJ
function name:  Test5_2
number of ops:  15
compiled vars:  !0 = $t, !1 = $i
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   INIT_FCALL                                               'microtime'
         1        SEND_VAL                                                 <true>
         2        DO_ICALL                                         $2      
         3        ASSIGN                                                   !0, $2
   8     4        ASSIGN                                                   !1, 0
         5      > JMP                                                      ->7
         6    >   PRE_INC                                                  !1
         7    >   IS_SMALLER                                       ~6      !1, 1000000
         8      > JMPNZ                                                    ~6, ->6
  10     9    >   INIT_FCALL                                               'microtime'
        10        SEND_VAL                                                 <true>
        11        DO_ICALL                                         $7      
        12        SUB                                              ~8      $7, !0
        13      > RETURN                                                   ~8
  11    14*     > RETURN                                                   null

End of function test5_2

Generated using Vulcan Logic Dumper, using php 7.2.0