3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = '1/99999'; list($m,$d)=explode("/",$t);$m%=12;$d%=365;$i=0;while($d>100)$d-=[31,28,31,30,31,30,31,31,30,31,30,31][$i++];$m+=$i;echoDateTime::createFromFormat("m/d","$m/$d")->format("n/j");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
Branch analysis from position: 14
filename:       /in/QZvvs
function name:  (null)
number of ops:  31
compiled vars:  !0 = $t, !1 = $m, !2 = $d, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%2F99999'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        FETCH_LIST_R                                     $6      $5, 0
          6        ASSIGN                                                   !1, $6
          7        FETCH_LIST_R                                     $8      $5, 1
          8        ASSIGN                                                   !2, $8
          9        FREE                                                     $5
         10        ASSIGN_OP                                     5          !1, 12
         11        ASSIGN_OP                                     5          !2, 365
         12        ASSIGN                                                   !3, 0
         13      > JMP                                                      ->17
         14    >   POST_INC                                         ~13     !3
         15        FETCH_DIM_R                                      ~14     <array>, ~13
         16        ASSIGN_OP                                     2          !2, ~14
         17    >   IS_SMALLER                                               100, !2
         18      > JMPNZ                                                    ~16, ->14
         19    >   ASSIGN_OP                                     1          !1, !3
         20        INIT_STATIC_METHOD_CALL                                  'echoDateTime', 'createFromFormat'
         21        SEND_VAL_EX                                              'm%2Fd'
         22        ROPE_INIT                                     3  ~19     !1
         23        ROPE_ADD                                      1  ~19     ~19, '%2F'
         24        ROPE_END                                      2  ~18     ~19, !2
         25        SEND_VAL_EX                                              ~18
         26        DO_FCALL                                      0  $21     
         27        INIT_METHOD_CALL                                         $21, 'format'
         28        SEND_VAL_EX                                              'n%2Fj'
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.1 ms | 1401 KiB | 15 Q