3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'credit/'.sprintf('%03d', substr(2, -3)).'/2/';
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/v5fNk
function name:  (null)
number of ops:  12
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   INIT_FCALL                                               'sprintf'
         1        SEND_VAL                                                 '%2503d'
         2        INIT_FCALL                                               'substr'
         3        SEND_VAL                                                 2
         4        SEND_VAL                                                 -3
         5        DO_ICALL                                         $0      
         6        SEND_VAR                                                 $0
         7        DO_ICALL                                         $1      
         8        CONCAT                                           ~2      'credit%2F', $1
         9        CONCAT                                           ~3      ~2, '%2F2%2F'
        10        ECHO                                                     ~3
        11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0