3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 1234567890; $hex = strtoupper(dechex($number)); $hex_padded = str_pad($hex, 9*2, "0", STR_PAD_LEFT); preg_match_all('/.{2}/', $hex_padded, $matches); $result = array_reverse($matches[0]); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OtpDo
function name:  (null)
number of ops:  29
compiled vars:  !0 = $number, !1 = $hex, !2 = $hex_padded, !3 = $matches, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1234567890
    5     1        INIT_FCALL                                               'strtoupper'
          2        INIT_FCALL                                               'dechex'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        SEND_VAR                                                 $6
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    6     8        INIT_FCALL                                               'str_pad'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 18
         11        SEND_VAL                                                 '0'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    9    15        INIT_FCALL                                               'preg_match_all'
         16        SEND_VAL                                                 '%2F.%7B2%7D%2F'
         17        SEND_VAR                                                 !2
         18        SEND_REF                                                 !3
         19        DO_ICALL                                                 
   10    20        INIT_FCALL                                               'array_reverse'
         21        FETCH_DIM_R                                      ~12     !3, 0
         22        SEND_VAL                                                 ~12
         23        DO_ICALL                                         $13     
         24        ASSIGN                                                   !4, $13
   13    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.14 ms | 1387 KiB | 25 Q