3v4l.org

run code in 300+ PHP versions simultaneously
<?php // casting vs. converting $a="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="123456789098734098710823740812038401982703489710289743089170289347019827034978"; $a*="12345678909873409871082374081203848768767896777556666689170289347019827034978"; const runs=100000; $start=microtime(1); for ($i=1;$i<runs;$i++) if ($start+0); print 'Time: '.(microtime(1)-$start)."<br>\n"; $start=microtime(1); for ($i=1;$i<runs;$i++) if ((int)$start); print 'Time: '.(microtime(1)-$start);
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 = 17, Position 2 = 11
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 30
Branch analysis from position: 36
Branch analysis from position: 30
Branch analysis from position: 32
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 11
Branch analysis from position: 17
Branch analysis from position: 11
Branch analysis from position: 13
filename:       /in/cRMVP
function name:  (null)
number of ops:  43
compiled vars:  !0 = $a, !1 = $start, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '123456789098734098710823740812038401982703489710289743089170289347019827034978'
    5     1        ASSIGN_OP                                     3          !0, '123456789098734098710823740812038401982703489710289743089170289347019827034978'
    6     2        ASSIGN_OP                                     3          !0, '123456789098734098710823740812038401982703489710289743089170289347019827034978'
    7     3        ASSIGN_OP                                     3          !0, '12345678909873409871082374081203848768767896777556666689170289347019827034978'
    9     4        DECLARE_CONST                                            'runs', 100000
   11     5        INIT_FCALL                                               'microtime'
          6        SEND_VAL                                                 1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
   12     9        ASSIGN                                                   !2, 1
         10      > JMP                                                      ->14
         11    >   ADD                                              ~10     !1, 0
         12      > JMPZ                                                     ~10, ->13
         13    >   PRE_INC                                                  !2
         14    >   FETCH_CONSTANT                                   ~12     'runs'
         15        IS_SMALLER                                               !2, ~12
         16      > JMPNZ                                                    ~13, ->11
   13    17    >   INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 1
         19        DO_ICALL                                         $14     
         20        SUB                                              ~15     $14, !1
         21        CONCAT                                           ~16     'Time%3A+', ~15
         22        CONCAT                                           ~17     ~16, '%3Cbr%3E%0A'
         23        ECHO                                                     ~17
   15    24        INIT_FCALL                                               'microtime'
         25        SEND_VAL                                                 1
         26        DO_ICALL                                         $18     
         27        ASSIGN                                                   !1, $18
   16    28        ASSIGN                                                   !2, 1
         29      > JMP                                                      ->33
         30    >   CAST                                          4  ~21     !1
         31      > JMPZ                                                     ~21, ->32
         32    >   PRE_INC                                                  !2
         33    >   FETCH_CONSTANT                                   ~23     'runs'
         34        IS_SMALLER                                               !2, ~23
         35      > JMPNZ                                                    ~24, ->30
   17    36    >   INIT_FCALL                                               'microtime'
         37        SEND_VAL                                                 1
         38        DO_ICALL                                         $25     
         39        SUB                                              ~26     $25, !1
         40        CONCAT                                           ~27     'Time%3A+', ~26
         41        ECHO                                                     ~27
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.37 ms | 1400 KiB | 15 Q