3v4l.org

run code in 500+ PHP versions simultaneously
<?php $seg = hex2bin("AABBCC00010014AABBCC"); $findStart=3; $a = ord($seg[$findStart+0]); $b = ord($seg[$findStart+1]); $c = ord($seg[$findStart+2]); $d = ord($seg[$findStart+3]); $newInt = ($a << 24) | ($b << 16) | ($c << 8) | $d; echo $newInt;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RlftP
function name:  (null)
number of ops:  38
compiled vars:  !0 = $seg, !1 = $findStart, !2 = $a, !3 = $b, !4 = $c, !5 = $d, !6 = $newInt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'hex2bin'
          1        SEND_VAL                                                     'AABBCC00010014AABBCC'
          2        DO_ICALL                                             $7      
          3        ASSIGN                                                       !0, $7
    4     4        ASSIGN                                                       !1, 3
    5     5        INIT_FCALL                                                   'ord'
          6        ADD                                                  ~10     !1, 0
          7        FETCH_DIM_R                                          ~11     !0, ~10
          8        SEND_VAL                                                     ~11
          9        DO_ICALL                                             $12     
         10        ASSIGN                                                       !2, $12
    6    11        INIT_FCALL                                                   'ord'
         12        ADD                                                  ~14     !1, 1
         13        FETCH_DIM_R                                          ~15     !0, ~14
         14        SEND_VAL                                                     ~15
         15        DO_ICALL                                             $16     
         16        ASSIGN                                                       !3, $16
    7    17        INIT_FCALL                                                   'ord'
         18        ADD                                                  ~18     !1, 2
         19        FETCH_DIM_R                                          ~19     !0, ~18
         20        SEND_VAL                                                     ~19
         21        DO_ICALL                                             $20     
         22        ASSIGN                                                       !4, $20
    8    23        INIT_FCALL                                                   'ord'
         24        ADD                                                  ~22     !1, 3
         25        FETCH_DIM_R                                          ~23     !0, ~22
         26        SEND_VAL                                                     ~23
         27        DO_ICALL                                             $24     
         28        ASSIGN                                                       !5, $24
   10    29        SL                                                   ~26     !2, 24
         30        SL                                                   ~27     !3, 16
         31        BW_OR                                                ~28     ~26, ~27
         32        SL                                                   ~29     !4, 8
         33        BW_OR                                                ~30     ~28, ~29
         34        BW_OR                                                ~31     !5, ~30
         35        ASSIGN                                                       !6, ~31
   12    36        ECHO                                                         !6
   13    37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.31 ms | 2208 KiB | 15 Q