3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 456; $timeArray = []; $secondes = $time; $temp = $secondes % 3600; $timeArray[0] = ( $secondes - $temp ) / 3600 ; $timeArray[2] = $temp % 60 ; $timeArray[1] = ( $temp - $timeArray[2] ) / 60; $timeFormated = $timeArray[0] . ' heures, ' . $timeArray[1] . ' minutes, ' . $timeArray[2] . ' secondes'; echo $timeFormated;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/g4L2W
function name:  (null)
number of ops:  28
compiled vars:  !0 = $time, !1 = $timeArray, !2 = $secondes, !3 = $temp, !4 = $timeFormated
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 456
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, !0
    6     3        MOD                                              ~8      !2, 3600
          4        ASSIGN                                                   !3, ~8
    8     5        SUB                                              ~11     !2, !3
          6        DIV                                              ~12     ~11, 3600
          7        ASSIGN_DIM                                               !1, 0
          8        OP_DATA                                                  ~12
    9     9        MOD                                              ~14     !3, 60
         10        ASSIGN_DIM                                               !1, 2
         11        OP_DATA                                                  ~14
   10    12        FETCH_DIM_R                                      ~16     !1, 2
         13        SUB                                              ~17     !3, ~16
         14        DIV                                              ~18     ~17, 60
         15        ASSIGN_DIM                                               !1, 1
         16        OP_DATA                                                  ~18
   11    17        FETCH_DIM_R                                      ~19     !1, 0
         18        CONCAT                                           ~20     ~19, '+heures%2C+'
         19        FETCH_DIM_R                                      ~21     !1, 1
         20        CONCAT                                           ~22     ~20, ~21
         21        CONCAT                                           ~23     ~22, '+minutes%2C+'
         22        FETCH_DIM_R                                      ~24     !1, 2
         23        CONCAT                                           ~25     ~23, ~24
         24        CONCAT                                           ~26     ~25, '+secondes'
         25        ASSIGN                                                   !4, ~26
   13    26        ECHO                                                     !4
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.57 ms | 1385 KiB | 13 Q