3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = explode("/",'09/28/2007'); for($i=0;$i<2;$i++){ if($date[$i] < 10){ $date[$i] = '0'.$date[$i]; } } // echo $date[2].$date[0].$date[1]; echo strlen('000');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
Branch analysis from position: 14
filename:       /in/QDV7V
function name:  (null)
number of ops:  19
compiled vars:  !0 = $date, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%2F'
          2        SEND_VAL                                                 '09%2F28%2F2007'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->15
    4     7    >   FETCH_DIM_R                                      ~5      !0, !1
          8        IS_SMALLER                                               ~5, 10
          9      > JMPZ                                                     ~6, ->14
    5    10    >   FETCH_DIM_R                                      ~8      !0, !1
         11        CONCAT                                           ~9      '0', ~8
         12        ASSIGN_DIM                                               !0, !1
         13        OP_DATA                                                  ~9
    3    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER                                               !1, 2
         16      > JMPNZ                                                    ~11, ->7
    9    17    >   ECHO                                                     3
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.08 ms | 1386 KiB | 15 Q