3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(TRUE); /* Start of the code to profile */ for ($a = 0; $a < 10000000; $a++) { $b = $a*$a; } /* End of the code to profile */ $end = microtime(TRUE); echo "The code took " . ($end - $start) . " microseconds to complete.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 6
Branch analysis from position: 11
Branch analysis from position: 6
filename:       /in/JkMjp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $a, !2 = $b, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    6     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->9
    8     6    >   MUL                                              ~7      !1, !1
          7        ASSIGN                                                   !2, ~7
    6     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000000
         10      > JMPNZ                                                    ~10, ->6
   12    11    >   INIT_FCALL                                               'microtime'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   13    15        SUB                                              ~13     !3, !0
         16        CONCAT                                           ~14     'The+code+took+', ~13
         17        CONCAT                                           ~15     ~14, '+microseconds+to+complete.'
         18        ECHO                                                     ~15
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.79 ms | 1395 KiB | 15 Q