3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = time(); $l = 10; foreach(array(2,8,10,16,24,32) as $base) echo str_pad($base, 2).' '.str_pad(base_convert($t, 10, $base), $l)."\n"; echo str_pad(64, 2).' '.str_pad(base64_encode($t), $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/peYK7
function name:  (null)
number of ops:  41
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
    6    25        INIT_FCALL                                               'str_pad'
         26        SEND_VAL                                                 64
         27        SEND_VAL                                                 2
         28        DO_ICALL                                         $13     
         29        CONCAT                                           ~14     $13, '+'
         30        INIT_FCALL                                               'str_pad'
         31        INIT_FCALL                                               'base64_encode'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $15     
         34        SEND_VAR                                                 $15
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $16     
         37        CONCAT                                           ~17     ~14, $16
         38        CONCAT                                           ~18     ~17, '%0A'
         39        ECHO                                                     ~18
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.48 ms | 1396 KiB | 21 Q