3v4l.org

run code in 300+ PHP versions simultaneously
<?php $variavel = "2:2014-07-13,4:2014-08-13,6:2014-08-13,7:2014-08-13"; $var = explode(",", $variavel); $total_var = count($var); $n = 0; while($n < $total_var){ $var[$n]; while($n < $total_var){ $explode2 = explode(":", $var[$n]); $explode2 = $explode2[0]; print $explode2; //Result: 2467 | How would: 2,4,6,7 $n++; } $n++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 10
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 10
Branch analysis from position: 28
Branch analysis from position: 10
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/GASQW
function name:  (null)
number of ops:  29
compiled vars:  !0 = $variavel, !1 = $var, !2 = $total_var, !3 = $n, !4 = $explode2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2%3A2014-07-13%2C4%3A2014-08-13%2C6%3A2014-08-13%2C7%3A2014-08-13'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        COUNT                                            ~8      !1
          7        ASSIGN                                                   !2, ~8
    5     8        ASSIGN                                                   !3, 0
    6     9      > JMP                                                      ->26
    7    10    >   FETCH_DIM_R                                      ~11     !1, !3
         11        FREE                                                     ~11
    9    12      > JMP                                                      ->23
   10    13    >   INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%3A'
         15        FETCH_DIM_R                                      ~12     !1, !3
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !4, $13
   11    19        FETCH_DIM_R                                      ~15     !4, 0
         20        ASSIGN                                                   !4, ~15
   12    21        ECHO                                                     !4
   13    22        PRE_INC                                                  !3
    9    23    >   IS_SMALLER                                               !3, !2
         24      > JMPNZ                                                    ~18, ->13
   15    25    >   PRE_INC                                                  !3
    6    26    >   IS_SMALLER                                               !3, !2
         27      > JMPNZ                                                    ~20, ->10
   16    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157 ms | 1396 KiB | 15 Q