3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v1 = 5; $v2 = '5-4'; $time = microtime(1); $i = 0; while($i++ < 1000000) echo '','','','',''; @ob_endclean(); echo (microtime(1)-$time)." seconds for commas"; echo "\n"; $time = microtime(1); $i = 0; @ob_start(); while($i++ < 1000000) echo ''.''.''.''.''; @ob_endclean(); echo (microtime(1)-$time)." seconds for dot"; function donull($v){};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 37
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 37
Branch analysis from position: 41
Branch analysis from position: 37
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 8
Branch analysis from position: 16
Branch analysis from position: 8
filename:       /in/4aSYd
function name:  (null)
number of ops:  52
compiled vars:  !0 = $v1, !1 = $v2, !2 = $time, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 5
    3     1        ASSIGN                                                   !1, '5-4'
    5     2        INIT_FCALL                                               'microtime'
          3        SEND_VAL                                                 1
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !2, $6
    6     6        ASSIGN                                                   !3, 0
    7     7      > JMP                                                      ->13
          8    >   ECHO                                                     ''
          9        ECHO                                                     ''
         10        ECHO                                                     ''
         11        ECHO                                                     ''
         12        ECHO                                                     ''
         13    >   POST_INC                                         ~9      !3
         14        IS_SMALLER                                               ~9, 1000000
         15      > JMPNZ                                                    ~10, ->8
    8    16    >   BEGIN_SILENCE                                    ~11     
         17        INIT_FCALL_BY_NAME                                       'ob_endclean'
         18        DO_FCALL                                      0          
         19        END_SILENCE                                              ~11
    9    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 1
         22        DO_ICALL                                         $13     
         23        SUB                                              ~14     $13, !2
         24        CONCAT                                           ~15     ~14, '+seconds+for+commas'
         25        ECHO                                                     ~15
   11    26        ECHO                                                     '%0A'
   14    27        INIT_FCALL                                               'microtime'
         28        SEND_VAL                                                 1
         29        DO_ICALL                                         $16     
         30        ASSIGN                                                   !2, $16
   15    31        ASSIGN                                                   !3, 0
   16    32        BEGIN_SILENCE                                    ~19     
         33        INIT_FCALL                                               'ob_start'
         34        DO_ICALL                                                 
         35        END_SILENCE                                              ~19
   17    36      > JMP                                                      ->38
         37    >   ECHO                                                     ''
         38    >   POST_INC                                         ~21     !3
         39        IS_SMALLER                                               ~21, 1000000
         40      > JMPNZ                                                    ~22, ->37
   18    41    >   BEGIN_SILENCE                                    ~23     
         42        INIT_FCALL_BY_NAME                                       'ob_endclean'
         43        DO_FCALL                                      0          
         44        END_SILENCE                                              ~23
   19    45        INIT_FCALL                                               'microtime'
         46        SEND_VAL                                                 1
         47        DO_ICALL                                         $25     
         48        SUB                                              ~26     $25, !2
         49        CONCAT                                           ~27     ~26, '+seconds+for+dot'
         50        ECHO                                                     ~27
   21    51      > RETURN                                                   1

Function donull:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4aSYd
function name:  donull
number of ops:  2
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function donull

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1400 KiB | 17 Q