3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=10000; $as=[]; $time_a=microtime(true); for($z=0;$z<$i;$z++){ $as[] = [0,1,2,3,4,5,6,7,8,9]; } $a = array_merge(...$as); $time_a=microtime(true)-$time_a; print($time_a.' sec');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 8
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/BebMd
function name:  (null)
number of ops:  26
compiled vars:  !0 = $i, !1 = $as, !2 = $time_a, !3 = $z, !4 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 10000
    5     1        ASSIGN                                                   !1, <array>
    6     2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 <true>
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !2, $7
    7     6        ASSIGN                                                   !3, 0
          7      > JMP                                                      ->11
    8     8    >   ASSIGN_DIM                                               !1
          9        OP_DATA                                                  <array>
    7    10        PRE_INC                                                  !3
         11    >   IS_SMALLER                                               !3, !0
         12      > JMPNZ                                                    ~12, ->8
   10    13    >   INIT_FCALL                                               'array_merge'
         14        SEND_UNPACK                                              !1
         15        CHECK_UNDEF_ARGS                                         
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !4, $13
   11    18        INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $15     
         21        SUB                                              ~16     $15, !2
         22        ASSIGN                                                   !2, ~16
   13    23        CONCAT                                           ~18     !2, '+sec'
         24        ECHO                                                     ~18
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.9 ms | 1395 KiB | 17 Q