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 = sprintf( "<a class='button button-secondary%s' href='themes.php?page=%s'$></a>", $class, $item[2], $item[0] ); } $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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 8
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 8
Branch analysis from position: 20
Branch analysis from position: 8
filename:       /in/fjur0
function name:  (null)
number of ops:  33
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                                                      ->18
    8     8    >   INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%3Ca+class%3D%27button+button-secondary%25s%27+href%3D%27themes.php%3Fpage%3D%25s%27%24%3E%3C%2Fa%3E'
         10        SEND_VAR                                                 !1
         11        FETCH_DIM_R                                      ~13     !2, 2
         12        SEND_VAL                                                 ~13
         13        FETCH_DIM_R                                      ~14     !2, 0
         14        SEND_VAL                                                 ~14
         15        DO_ICALL                                         $15     
         16        ASSIGN                                                   !4, $15
    7    17        PRE_INC                                                  !3
         18    >   IS_SMALLER                                               !3, 1000000
         19      > JMPNZ                                                    ~18, ->8
   11    20    >   INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !5, $19
   12    24        SUB                                              ~21     !5, !0
         25        ASSIGN                                                   !6, ~21
   13    26        INIT_FCALL                                               'number_format'
         27        SEND_VAR                                                 !6
         28        SEND_VAL                                                 3
         29        DO_ICALL                                         $23     
         30        ASSIGN                                                   !7, $23
   14    31        ECHO                                                     !7
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.38 ms | 1396 KiB | 19 Q