3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = explode("/",'9/28/2007'); for($i=0;$i<2;$i++){ if($date[$i] < 10){ echo count($date[$i]); $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 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 7
Branch analysis from position: 20
Branch analysis from position: 7
Branch analysis from position: 17
filename:       /in/T9f8G
function name:  (null)
number of ops:  27
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                                                 '9%2F28%2F2007'
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    3     5        ASSIGN                                                   !1, 0
          6      > JMP                                                      ->18
    4     7    >   FETCH_DIM_R                                      ~5      !0, !1
          8        IS_SMALLER                                               ~5, 10
          9      > JMPZ                                                     ~6, ->17
    5    10    >   FETCH_DIM_R                                      ~7      !0, !1
         11        COUNT                                            ~8      ~7
         12        ECHO                                                     ~8
    6    13        FETCH_DIM_R                                      ~10     !0, !1
         14        CONCAT                                           ~11     '0', ~10
         15        ASSIGN_DIM                                               !0, !1
         16        OP_DATA                                                  ~11
    3    17    >   PRE_INC                                                  !1
         18    >   IS_SMALLER                                               !1, 2
         19      > JMPNZ                                                    ~13, ->7
    9    20    >   FETCH_DIM_R                                      ~14     !0, 2
         21        FETCH_DIM_R                                      ~15     !0, 0
         22        CONCAT                                           ~16     ~14, ~15
         23        FETCH_DIM_R                                      ~17     !0, 1
         24        CONCAT                                           ~18     ~16, ~17
         25        ECHO                                                     ~18
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 1396 KiB | 15 Q