3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=120311023; $y=321231231; $t=microtime(); $quad_x = $x & 32768 ? 1 : 0; $quad_y = $y & 32768 ? 1 : 0; echo microtime()-$t."\n"; $t=microtime(); list($x,$y)=array($x & 32768 ? 1:0,$y & 32768 ? 1 : 0); echo microtime()-$t."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 35
Branch analysis from position: 33
Branch analysis from position: 35
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
Branch analysis from position: 29
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
Branch analysis from position: 15
filename:       /in/37ckg
function name:  (null)
number of ops:  48
compiled vars:  !0 = $x, !1 = $y, !2 = $t, !3 = $quad_x, !4 = $quad_y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 120311023
    3     1        ASSIGN                                                   !1, 321231231
    4     2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !2, $7
    5     5        BW_AND                                           ~9      !0, 32768
          6      > JMPZ                                                     ~9, ->9
          7    >   QM_ASSIGN                                        ~10     1
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~10     0
         10    >   ASSIGN                                                   !3, ~10
    6    11        BW_AND                                           ~12     !1, 32768
         12      > JMPZ                                                     ~12, ->15
         13    >   QM_ASSIGN                                        ~13     1
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~13     0
         16    >   ASSIGN                                                   !4, ~13
    7    17        INIT_FCALL                                               'microtime'
         18        DO_ICALL                                         $15     
         19        SUB                                              ~16     $15, !2
         20        CONCAT                                           ~17     ~16, '%0A'
         21        ECHO                                                     ~17
    8    22        INIT_FCALL                                               'microtime'
         23        DO_ICALL                                         $18     
         24        ASSIGN                                                   !2, $18
    9    25        BW_AND                                           ~20     !0, 32768
         26      > JMPZ                                                     ~20, ->29
         27    >   QM_ASSIGN                                        ~21     1
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~21     0
         30    >   INIT_ARRAY                                       ~22     ~21
         31        BW_AND                                           ~23     !1, 32768
         32      > JMPZ                                                     ~23, ->35
         33    >   QM_ASSIGN                                        ~24     1
         34      > JMP                                                      ->36
         35    >   QM_ASSIGN                                        ~24     0
         36    >   ADD_ARRAY_ELEMENT                                ~22     ~24
         37        FETCH_LIST_R                                     $25     ~22, 0
         38        ASSIGN                                                   !0, $25
         39        FETCH_LIST_R                                     $27     ~22, 1
         40        ASSIGN                                                   !1, $27
         41        FREE                                                     ~22
   10    42        INIT_FCALL                                               'microtime'
         43        DO_ICALL                                         $29     
         44        SUB                                              ~30     $29, !2
         45        CONCAT                                           ~31     ~30, '%0A'
         46        ECHO                                                     ~31
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.78 ms | 1400 KiB | 15 Q