3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rounds = 10000000; $voll = "inhalt"; $leer = ""; //$unset $start = microtime(true); for ($i = 0; $i < $rounds; ++$i) { empty($voll); empty($leer); } echo "Took me ".(microtime(true) - $start). "seconds"; $start = microtime(true); for ($i = 0; $i < $rounds; ++$i) { $voll == ""; $leer == ""; } echo "Took me ".(microtime(true) - $start). "seconds";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 29
Branch analysis from position: 36
Branch analysis from position: 29
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 9
Branch analysis from position: 16
Branch analysis from position: 9
filename:       /in/CrE1N
function name:  (null)
number of ops:  44
compiled vars:  !0 = $rounds, !1 = $voll, !2 = $leer, !3 = $start, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 10000000
    3     1        ASSIGN                                                   !1, 'inhalt'
    4     2        ASSIGN                                                   !2, ''
    7     3        INIT_FCALL                                               'microtime'
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !3, $8
    8     7        ASSIGN                                                   !4, 0
          8      > JMP                                                      ->14
    9     9    >   ISSET_ISEMPTY_CV                                 ~11     !1
         10        FREE                                                     ~11
   10    11        ISSET_ISEMPTY_CV                                 ~12     !2
         12        FREE                                                     ~12
    8    13        PRE_INC                                                  !4
         14    >   IS_SMALLER                                               !4, !0
         15      > JMPNZ                                                    ~14, ->9
   12    16    >   INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $15     
         19        SUB                                              ~16     $15, !3
         20        CONCAT                                           ~17     'Took+me+', ~16
         21        CONCAT                                           ~18     ~17, 'seconds'
         22        ECHO                                                     ~18
   14    23        INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $19     
         26        ASSIGN                                                   !3, $19
   15    27        ASSIGN                                                   !4, 0
         28      > JMP                                                      ->34
   16    29    >   IS_EQUAL                                         ~22     !1, ''
         30        FREE                                                     ~22
   17    31        IS_EQUAL                                         ~23     !2, ''
         32        FREE                                                     ~23
   15    33        PRE_INC                                                  !4
         34    >   IS_SMALLER                                               !4, !0
         35      > JMPNZ                                                    ~25, ->29
   19    36    >   INIT_FCALL                                               'microtime'
         37        SEND_VAL                                                 <true>
         38        DO_ICALL                                         $26     
         39        SUB                                              ~27     $26, !3
         40        CONCAT                                           ~28     'Took+me+', ~27
         41        CONCAT                                           ~29     ~28, 'seconds'
         42        ECHO                                                     ~29
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.39 ms | 1400 KiB | 15 Q