3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = microtime(true); for($i = 0; $i < 100000; $i++) { $a = 100; $b = 200; $c = $a == $b; } echo sprintf("%f seconds", microtime(true) - $s);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 12
Branch analysis from position: 12
Jump found. Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Jump found. Position 1 = -2
Branch analysis from position: 6
Jump found. Position 1 = 14, Position 2 = 6
Branch analysis from position: 14
Branch analysis from position: 6
filename:       /in/rYCjk
function name:  (null)
number of ops:  24
compiled vars:  !0 = $s, !1 = $i, !2 = $a, !3 = $b, !4 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'microtime'
         1        SEND_VAL                                                 <true>
         2        DO_ICALL                                         $5      
         3        ASSIGN                                                   !0, $5
   3     4        ASSIGN                                                   !1, 0
         5      > JMP                                                      ->12
   4     6    >   ASSIGN                                                   !2, 100
   5     7        ASSIGN                                                   !3, 200
   6     8        IS_EQUAL                                         ~10     !2, !3
         9        ASSIGN                                                   !4, ~10
   3    10        POST_INC                                         ~12     !1
        11        FREE                                                     ~12
        12    >   IS_SMALLER                                       ~13     !1, 100000
        13      > JMPNZ                                                    ~13, ->6
   8    14    >   INIT_FCALL                                               'sprintf'
        15        SEND_VAL                                                 '%25f+seconds'
        16        INIT_FCALL                                               'microtime'
        17        SEND_VAL                                                 <true>
        18        DO_ICALL                                         $14     
        19        SUB                                              ~15     $14, !0
        20        SEND_VAL                                                 ~15
        21        DO_ICALL                                         $16     
        22        ECHO                                                     $16
        23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0