3v4l.org

run code in 300+ PHP versions simultaneously
<?php function setCampo($nome,$value) { $valori[$nome] = $value; print_r($valori); } $g = explode('.',(string)((int)'21668' / 365.25)); print_r($g); $anni = intval($g[0]); $mesi = intval((float)("0.".$g[1]) * 12); setCampo('eta', $anni.'a '.$mesi.'m' ); setCampo('eta_a', "$anni"); setCampo('eta_m', "$mesi");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a90IN
function name:  (null)
number of ops:  38
compiled vars:  !0 = $g, !1 = $anni, !2 = $mesi
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     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
   10     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   11    11        FETCH_DIM_R                                      ~9      !0, 0
         12        CAST                                          4  ~10     ~9
         13        ASSIGN                                                   !1, ~10
   12    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
   14    20        INIT_FCALL                                               'setcampo'
         21        SEND_VAL                                                 'eta'
         22        CONCAT                                           ~18     !1, 'a+'
         23        CONCAT                                           ~19     ~18, !2
         24        CONCAT                                           ~20     ~19, 'm'
         25        SEND_VAL                                                 ~20
         26        DO_FCALL                                      0          
   15    27        INIT_FCALL                                               'setcampo'
         28        SEND_VAL                                                 'eta_a'
         29        CAST                                          6  ~22     !1
         30        SEND_VAL                                                 ~22
         31        DO_FCALL                                      0          
   16    32        INIT_FCALL                                               'setcampo'
         33        SEND_VAL                                                 'eta_m'
         34        CAST                                          6  ~24     !2
         35        SEND_VAL                                                 ~24
         36        DO_FCALL                                      0          
         37      > RETURN                                                   1

Function setcampo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/a90IN
function name:  setCampo
number of ops:  8
compiled vars:  !0 = $nome, !1 = $value, !2 = $valori
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN_DIM                                               !2, !0
          3        OP_DATA                                                  !1
    5     4        INIT_FCALL                                               'print_r'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                                 
    6     7      > RETURN                                                   null

End of function setcampo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.9 ms | 1403 KiB | 20 Q