3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 44; if(strlen($a)<13 && strlen($a)>8) { $a = sprintf("%013.00f", $a); } echo $a;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/02amM
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, 44
   4     1        STRLEN                                           ~2      !0
         2        IS_SMALLER                                       ~3      ~2, 13
         3      > JMPZ_EX                                          ~3      ~3, ->7
         4    >   STRLEN                                           ~4      !0
         5        IS_SMALLER                                       ~5      8, ~4
         6        BOOL                                             ~3      ~5
         7    > > JMPZ                                                     ~3, ->13
   5     8    >   INIT_FCALL                                               'sprintf'
         9        SEND_VAL                                                 '%25013.00f'
        10        SEND_VAR                                                 !0
        11        DO_ICALL                                         $6      
        12        ASSIGN                                                   !0, $6
   7    13    >   ECHO                                                     !0
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0