3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $a = array(); for ($i = 0; $i < 100000; ++$i) { if (is_array($a)) { } } $time2 = microtime(true); echo "Zeit: " . ($time2 - $time);
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 = 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 7
Branch analysis from position: 12
Branch analysis from position: 7
Branch analysis from position: 9
filename:       /in/psc1T
function name:  (null)
number of ops:  20
compiled vars:  !0 = $time, !1 = $a, !2 = $i, !3 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    5     4        ASSIGN                                                   !1, <array>
    7     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->10
    8     7    >   TYPE_CHECK                                  128          !1
          8      > JMPZ                                                     ~8, ->9
    7     9    >   PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, 100000
         11      > JMPNZ                                                    ~10, ->7
   13    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !3, $11
   16    16        SUB                                              ~13     !3, !0
         17        CONCAT                                           ~14     'Zeit%3A+', ~13
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.2 ms | 1395 KiB | 15 Q