3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'credit/'.sprintf('%03d', substr(1523, -3)).'/1523/';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PV8D5
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                                                 1523
          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, '%2F1523%2F'
         10        ECHO                                                     ~3
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.13 ms | 1398 KiB | 17 Q