3v4l.org

run code in 300+ PHP versions simultaneously
<?php $number = 4; $hexString = dechex($number); $result = str_pad($hexString,6,"0",STR_PAD_LEFT); echo($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QLagM
function name:  (null)
number of ops:  14
compiled vars:  !0 = $number, !1 = $hexString, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 4
    5     1        INIT_FCALL                                               'dechex'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'str_pad'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 6
          8        SEND_VAL                                                 '0'
          9        SEND_VAL                                                 0
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    7    12        ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.27 ms | 1394 KiB | 17 Q