3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; $t1 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { count([]); } $t2 = hrtime(true); $t3 = hrtime(true); for ($i = 0; $i < 6000000; $i++) { \count([]); } $t4 = hrtime(true); echo "Without import: " . (($t2 - $t1) / 1000000) . " ms\n"; echo "With import : " . (($t4 - $t3) / 1000000) . " ms\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 = 6
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 22
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 22
Branch analysis from position: 27
Branch analysis from position: 22
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/bNVlg
function name:  (null)
number of ops:  42
compiled vars:  !0 = $t1, !1 = $i, !2 = $t2, !3 = $t3, !4 = $t4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_NS_FCALL_BY_NAME                                    'A%5Chrtime'
          1        SEND_VAL_EX                                              <true>
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !0, $5
    5     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->10
    6     6    >   INIT_NS_FCALL_BY_NAME                                    'A%5Ccount'
          7        SEND_VAL_EX                                              <array>
          8        DO_FCALL                                      0          
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 6000000
         11      > JMPNZ                                                    ~10, ->6
    8    12    >   INIT_NS_FCALL_BY_NAME                                    'A%5Chrtime'
         13        SEND_VAL_EX                                              <true>
         14        DO_FCALL                                      0  $11     
         15        ASSIGN                                                   !2, $11
   10    16        INIT_NS_FCALL_BY_NAME                                    'A%5Chrtime'
         17        SEND_VAL_EX                                              <true>
         18        DO_FCALL                                      0  $13     
         19        ASSIGN                                                   !3, $13
   11    20        ASSIGN                                                   !1, 0
         21      > JMP                                                      ->25
   12    22    >   COUNT                                            ~16     <array>
         23        FREE                                                     ~16
   11    24        PRE_INC                                                  !1
         25    >   IS_SMALLER                                               !1, 6000000
         26      > JMPNZ                                                    ~18, ->22
   14    27    >   INIT_NS_FCALL_BY_NAME                                    'A%5Chrtime'
         28        SEND_VAL_EX                                              <true>
         29        DO_FCALL                                      0  $19     
         30        ASSIGN                                                   !4, $19
   16    31        SUB                                              ~21     !2, !0
         32        DIV                                              ~22     ~21, 1000000
         33        CONCAT                                           ~23     'Without+import%3A+', ~22
         34        CONCAT                                           ~24     ~23, '+ms%0A'
         35        ECHO                                                     ~24
   17    36        SUB                                              ~25     !4, !3
         37        DIV                                              ~26     ~25, 1000000
         38        CONCAT                                           ~27     'With+import+++%3A+', ~26
         39        CONCAT                                           ~28     ~27, '+ms%0A'
         40        ECHO                                                     ~28
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.55 ms | 1443 KiB | 15 Q