3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "360052719947"; 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/qQdvg
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, '360052719947'
    3     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
    4     8    >   INIT_FCALL                                               'sprintf'
          9        SEND_VAL                                                 '%25013.00f'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !0, $6
    6    13    >   ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.43 ms | 1394 KiB | 15 Q