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(str_replace('','',$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 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 5
filename:       /in/IR8uq
function name:  (null)
number of ops:  23
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>, ->21
          6    > > FE_FETCH_R                                               $2, !0, ->21
    7     7    >   INIT_FCALL                                               'str_pad'
          8        INIT_FCALL                                               'str_replace'
          9        SEND_VAL                                                 ''
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        SEND_VAL                                                 20
         15        SEND_VAL                                                 '0'
         16        SEND_VAL                                                 0
         17        DO_ICALL                                         $4      
         18        ECHO                                                     $4
         19        ECHO                                                     '%0A'
    6    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $2
    8    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1387 KiB | 19 Q