3v4l.org

run code in 300+ PHP versions simultaneously
<?php $elements = 1000; $iterations = 10000; $array = array(); for ($i = 0; $i < $elements; $i++) $array[] = $i; $s = microtime(true); for ($i = 0; $i < $iterations; $i++) $array . '' === 'Array'; $e = microtime(true); echo "String Array completed in " . ($e - $s) ." Seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 16
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 16
Branch analysis from position: 22
Branch analysis from position: 16
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 5
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/rZL56
function name:  (null)
number of ops:  31
compiled vars:  !0 = $elements, !1 = $iterations, !2 = $array, !3 = $i, !4 = $s, !5 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1000
    4     1        ASSIGN                                                   !1, 10000
    6     2        ASSIGN                                                   !2, <array>
    7     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->8
          5    >   ASSIGN_DIM                                               !2
          6        OP_DATA                                                  !3
          7        PRE_INC                                                  !3
          8    >   IS_SMALLER                                               !3, !0
          9      > JMPNZ                                                    ~12, ->5
    9    10    >   INIT_FCALL                                               'microtime'
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $13     
         13        ASSIGN                                                   !4, $13
   10    14        ASSIGN                                                   !3, 0
         15      > JMP                                                      ->20
         16    >   CONCAT                                           ~16     !2, ''
         17        IS_IDENTICAL                                     ~17     ~16, 'Array'
         18        FREE                                                     ~17
         19        PRE_INC                                                  !3
         20    >   IS_SMALLER                                               !3, !1
         21      > JMPNZ                                                    ~19, ->16
   11    22    >   INIT_FCALL                                               'microtime'
         23        SEND_VAL                                                 <true>
         24        DO_ICALL                                         $20     
         25        ASSIGN                                                   !5, $20
   12    26        SUB                                              ~22     !5, !4
         27        CONCAT                                           ~23     'String+Array+completed+in+', ~22
         28        CONCAT                                           ~24     ~23, '+Seconds%0A'
         29        ECHO                                                     ~24
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
239.09 ms | 1396 KiB | 16 Q