3v4l.org

run code in 300+ PHP versions simultaneously
<?php //namespace A\B; $a = [['x'], ['y'], ['z1'], 1, 2, 3, 4, 5, 'some text']; $time = microtime(true); for ($i=0; $i<1000000; $i++) { \count($a); } echo (microtime(true) - $time) . "\n"; $time = microtime(true); for ($i=0; $i<1000000; $i++) { count($a); } echo (microtime(true) - $time) . "\n";
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/tmJMq
function name:  (null)
number of ops:  36
compiled vars:  !0 = $a, !1 = $time, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    9     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
   10     7    >   COUNT                                            ~7      !0
          8        FREE                                                     ~7
    9     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 1000000
         11      > JMPNZ                                                    ~9, ->7
   13    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $10     
         15        SUB                                              ~11     $10, !1
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
   16    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !1, $13
   18    22        ASSIGN                                                   !2, 0
         23      > JMP                                                      ->27
   19    24    >   COUNT                                            ~16     !0
         25        FREE                                                     ~16
   18    26        PRE_INC                                                  !2
         27    >   IS_SMALLER                                               !2, 1000000
         28      > JMPNZ                                                    ~18, ->24
   22    29    >   INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $19     
         32        SUB                                              ~20     $19, !1
         33        CONCAT                                           ~21     ~20, '%0A'
         34        ECHO                                                     ~21
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.19 ms | 1438 KiB | 14 Q