3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'a'; $start_time = microtime(true); for($i = 0; $i <= 1000000; $i++){ +$a; } echo '<br/>', microtime(true) - $start_time; $start_time1 = microtime(true); for($i = 0; $i <= 1000000; $i++){ intval($a); } echo '<br/>', microtime(true) - $start_time1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 24
Branch analysis from position: 29
Branch analysis from position: 24
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
filename:       /in/69okj
function name:  (null)
number of ops:  36
compiled vars:  !0 = $a, !1 = $start_time, !2 = $i, !3 = $start_time1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    6     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    7     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
    8     7    >   MUL                                              ~8      !0, 1
          8        FREE                                                     ~8
    7     9        PRE_INC                                                  !2
         10    >   IS_SMALLER_OR_EQUAL                                      !2, 1000000
         11      > JMPNZ                                                    ~10, ->7
   10    12    >   ECHO                                                     '%3Cbr%2F%3E'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $11     
         16        SUB                                              ~12     $11, !1
         17        ECHO                                                     ~12
   13    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !3, $13
   14    22        ASSIGN                                                   !2, 0
         23      > JMP                                                      ->27
   15    24    >   CAST                                          4  ~16     !0
         25        FREE                                                     ~16
   14    26        PRE_INC                                                  !2
         27    >   IS_SMALLER_OR_EQUAL                                      !2, 1000000
         28      > JMPNZ                                                    ~18, ->24
   17    29    >   ECHO                                                     '%3Cbr%2F%3E'
         30        INIT_FCALL                                               'microtime'
         31        SEND_VAL                                                 <true>
         32        DO_ICALL                                         $19     
         33        SUB                                              ~20     $19, !3
         34        ECHO                                                     ~20
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.14 ms | 1396 KiB | 15 Q