3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.39 ms | 1387 KiB | 15 Q