3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1395 KiB | 19 Q