3v4l.org

run code in 300+ PHP versions simultaneously
<?php function printIncrementAndShard($id) { $increment = $id >> 8; $shard = ($id & 0xFF); echo $id . ' = ' . $increment . '.' . $shard . PHP_EOL; } printIncrementAndShard(0x00000100); printIncrementAndShard(0x00000101); printIncrementAndShard(0x12345678); printIncrementAndShard(0xFFFFFFFF);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JXQME
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'printincrementandshard'
          1        SEND_VAL                                                 256
          2        DO_FCALL                                      0          
   12     3        INIT_FCALL                                               'printincrementandshard'
          4        SEND_VAL                                                 257
          5        DO_FCALL                                      0          
   13     6        INIT_FCALL                                               'printincrementandshard'
          7        SEND_VAL                                                 305419896
          8        DO_FCALL                                      0          
   14     9        INIT_FCALL                                               'printincrementandshard'
         10        SEND_VAL                                                 4294967295
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function printincrementandshard:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JXQME
function name:  printIncrementAndShard
number of ops:  12
compiled vars:  !0 = $id, !1 = $increment, !2 = $shard
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        SR                                               ~3      !0, 8
          2        ASSIGN                                                   !1, ~3
    6     3        BW_AND                                           ~5      !0, 255
          4        ASSIGN                                                   !2, ~5
    8     5        CONCAT                                           ~7      !0, '+%3D+'
          6        CONCAT                                           ~8      ~7, !1
          7        CONCAT                                           ~9      ~8, '.'
          8        CONCAT                                           ~10     ~9, !2
          9        CONCAT                                           ~11     ~10, '%0A'
         10        ECHO                                                     ~11
    9    11      > RETURN                                                   null

End of function printincrementandshard

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.36 ms | 1398 KiB | 17 Q