3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( ! defined('PHP_EOL')) { define('PHP_EOL', "\n"); } foreach (array('67585', '489382995463342') as $test) { echo str_pad($test, 20, '0', STR_PAD_LEFT), PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 5
Branch analysis from position: 1
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 5
filename:       /in/UKBqS
function name:  (null)
number of ops:  18
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E > > JMPZ                                                     <false>, ->5
    3     1    >   INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'PHP_EOL'
          3        SEND_VAL                                                 '%0A'
          4        DO_ICALL                                                 
    6     5    > > FE_RESET_R                                       $2      <array>, ->16
          6    > > FE_FETCH_R                                               $2, !0, ->16
    7     7    >   INIT_FCALL                                               'str_pad'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 20
         10        SEND_VAL                                                 '0'
         11        SEND_VAL                                                 0
         12        DO_ICALL                                         $3      
         13        ECHO                                                     $3
         14        ECHO                                                     '%0A'
    6    15      > JMP                                                      ->6
         16    >   FE_FREE                                                  $2
    8    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1395 KiB | 17 Q