3v4l.org

run code in 300+ PHP versions simultaneously
<?php $g = explode('.',(string)((int)'21668' / 365.25)); print_r($g); $anni = intval($g[0]); $mesi = intval((float)("0.".$g[1]) * 12); echo $anni."<br/>"; echo $mesi."<br/>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0AI63
function name:  (null)
number of ops:  25
compiled vars:  !0 = $g, !1 = $anni, !2 = $mesi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '.'
          2        CAST                                          4  ~3      '21668'
          3        DIV                                              ~4      ~3, 365.25
          4        CAST                                          6  ~5      ~4
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !0, $6
    4     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    5    11        FETCH_DIM_R                                      ~9      !0, 0
         12        CAST                                          4  ~10     ~9
         13        ASSIGN                                                   !1, ~10
    6    14        FETCH_DIM_R                                      ~12     !0, 1
         15        CONCAT                                           ~13     '0.', ~12
         16        CAST                                          5  ~14     ~13
         17        MUL                                              ~15     ~14, 12
         18        CAST                                          4  ~16     ~15
         19        ASSIGN                                                   !2, ~16
    8    20        CONCAT                                           ~18     !1, '%3Cbr%2F%3E'
         21        ECHO                                                     ~18
    9    22        CONCAT                                           ~19     !2, '%3Cbr%2F%3E'
         23        ECHO                                                     ~19
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1395 KiB | 17 Q