3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24,64) as $base) echo str_pad($base, 2).' '.str_pad(base_convert($t, 10, $base), $l)."\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 24
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 24
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/IX342
function name:  (null)
number of ops:  26
compiled vars:  !0 = $t, !1 = $l, !2 = $base
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 10
    4     4      > FE_RESET_R                                       $6      <array>, ->24
          5    > > FE_FETCH_R                                               $6, !2, ->24
    5     6    >   INIT_FCALL                                               'str_pad'
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $7      
         10        CONCAT                                           ~8      $7, '+'
         11        INIT_FCALL                                               'str_pad'
         12        INIT_FCALL                                               'base_convert'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 10
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $9      
         17        SEND_VAR                                                 $9
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     ~8, $10
         21        CONCAT                                           ~12     ~11, '%0A'
         22        ECHO                                                     ~12
    4    23      > JMP                                                      ->5
         24    >   FE_FREE                                                  $6
    5    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.2 ms | 1387 KiB | 19 Q