3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = range(0, 100000); $keys = array_map(function ($x) { return chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . $x; }, $x); $vars = array_combine($keys, $x); $t = microtime(TRUE); extract($vars); echo sprintf("%.4f", microtime(TRUE) - $t);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fl3Ej
function name:  (null)
number of ops:  33
compiled vars:  !0 = $x, !1 = $keys, !2 = $vars, !3 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     0
          2        SEND_VAL                                                     100000
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !0, $4
    3     5        INIT_FCALL                                                   'array_map'
          6        DECLARE_LAMBDA_FUNCTION                              ~6      [0]
    5     7        SEND_VAL                                                     ~6
          8        SEND_VAR                                                     !0
    3     9        DO_ICALL                                             $7      
         10        ASSIGN                                                       !1, $7
    6    11        INIT_FCALL                                                   'array_combine'
         12        SEND_VAR                                                     !1
         13        SEND_VAR                                                     !0
         14        DO_ICALL                                             $9      
         15        ASSIGN                                                       !2, $9
    7    16        INIT_FCALL                                                   'microtime'
         17        SEND_VAL                                                     <true>
         18        DO_ICALL                                             $11     
         19        ASSIGN                                                       !3, $11
    8    20        INIT_FCALL                                                   'extract'
         21        SEND_REF                                                     !2
         22        DO_ICALL                                                     
    9    23        INIT_FCALL                                                   'sprintf'
         24        SEND_VAL                                                     '%25.4f'
         25        INIT_FCALL                                                   'microtime'
         26        SEND_VAL                                                     <true>
         27        DO_ICALL                                             $14     
         28        SUB                                                  ~15     $14, !3
         29        SEND_VAL                                                     ~15
         30        DO_ICALL                                             $16     
         31        ECHO                                                         $16
         32      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Fl3Ej
function name:  {closure:/in/Fl3Ej:3}
number of ops:  30
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'chr'
          2        INIT_FCALL                                                   'rand'
          3        SEND_VAL                                                     0
          4        SEND_VAL                                                     26
          5        DO_ICALL                                             $1      
          6        ADD                                                  ~2      46, $1
          7        SEND_VAL                                                     ~2
          8        DO_ICALL                                             $3      
          9        INIT_FCALL                                                   'chr'
         10        INIT_FCALL                                                   'rand'
         11        SEND_VAL                                                     0
         12        SEND_VAL                                                     26
         13        DO_ICALL                                             $4      
         14        ADD                                                  ~5      46, $4
         15        SEND_VAL                                                     ~5
         16        DO_ICALL                                             $6      
         17        CONCAT                                               ~7      $3, $6
         18        INIT_FCALL                                                   'chr'
         19        INIT_FCALL                                                   'rand'
         20        SEND_VAL                                                     0
         21        SEND_VAL                                                     26
         22        DO_ICALL                                             $8      
         23        ADD                                                  ~9      46, $8
         24        SEND_VAL                                                     ~9
         25        DO_ICALL                                             $10     
         26        CONCAT                                               ~11     ~7, $10
         27        CONCAT                                               ~12     ~11, !0
         28      > RETURN                                                       ~12
    5    29*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.6 ms | 1940 KiB | 21 Q