3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestart = microtime( true ); $class = 'css'; $item = array( 'foo', 'bar', 'baz' ); for($i=0;$i<1000000;$i++){ $str = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'$>{$item[0]}</a>"; } $timeend = microtime( true ); $timetotal = $timeend - $timestart; $r = number_format( $timetotal, 3 ); echo $r;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 8
Branch analysis from position: 21
Branch analysis from position: 8
filename:       /in/Wvf46
function name:  (null)
number of ops:  34
compiled vars:  !0 = $timestart, !1 = $class, !2 = $item, !3 = $i, !4 = $str, !5 = $timeend, !6 = $timetotal, !7 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $8      
          3        ASSIGN                                                   !0, $8
    4     4        ASSIGN                                                   !1, 'css'
    5     5        ASSIGN                                                   !2, <array>
    7     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->19
    8     8    >   ROPE_INIT                                     7  ~16     '%3Ca+class%3D%27button+button-secondary'
          9        ROPE_ADD                                      1  ~16     ~16, !1
         10        ROPE_ADD                                      2  ~16     ~16, '%27+href%3D%27themes.php%3Fpage%3D'
         11        FETCH_DIM_R                                      ~13     !2, 2
         12        ROPE_ADD                                      3  ~16     ~16, ~13
         13        ROPE_ADD                                      4  ~16     ~16, '%27%24%3E'
         14        FETCH_DIM_R                                      ~14     !2, 0
         15        ROPE_ADD                                      5  ~16     ~16, ~14
         16        ROPE_END                                      6  ~15     ~16, '%3C%2Fa%3E'
         17        ASSIGN                                                   !4, ~15
    7    18        PRE_INC                                                  !3
         19    >   IS_SMALLER                                               !3, 1000000
         20      > JMPNZ                                                    ~22, ->8
   11    21    >   INIT_FCALL                                               'microtime'
         22        SEND_VAL                                                 <true>
         23        DO_ICALL                                         $23     
         24        ASSIGN                                                   !5, $23
   12    25        SUB                                              ~25     !5, !0
         26        ASSIGN                                                   !6, ~25
   13    27        INIT_FCALL                                               'number_format'
         28        SEND_VAR                                                 !6
         29        SEND_VAL                                                 3
         30        DO_ICALL                                         $27     
         31        ASSIGN                                                   !7, $27
   14    32        ECHO                                                     !7
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.88 ms | 1396 KiB | 17 Q