3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mins = 1000; $minutes = $mins % 60; $hours = floor($mins / 60) % 9; $days = floor(($mins / 60) / 9); echo "Days: $days, Hours: $hours, Minutes: $minutes\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fphd8
function name:  (null)
number of ops:  24
compiled vars:  !0 = $mins, !1 = $minutes, !2 = $hours, !3 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1000
    4     1        MOD                                              ~5      !0, 60
          2        ASSIGN                                                   !1, ~5
    5     3        INIT_FCALL                                               'floor'
          4        DIV                                              ~7      !0, 60
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                         $8      
          7        MOD                                              ~9      $8, 9
          8        ASSIGN                                                   !2, ~9
    6     9        INIT_FCALL                                               'floor'
         10        DIV                                              ~11     !0, 60
         11        DIV                                              ~12     ~11, 9
         12        SEND_VAL                                                 ~12
         13        DO_ICALL                                         $13     
         14        ASSIGN                                                   !3, $13
    7    15        ROPE_INIT                                     7  ~16     'Days%3A+'
         16        ROPE_ADD                                      1  ~16     ~16, !3
         17        ROPE_ADD                                      2  ~16     ~16, '%2C+Hours%3A+'
         18        ROPE_ADD                                      3  ~16     ~16, !2
         19        ROPE_ADD                                      4  ~16     ~16, '%2C+Minutes%3A+'
         20        ROPE_ADD                                      5  ~16     ~16, !1
         21        ROPE_END                                      6  ~15     ~16, '%0A'
         22        ECHO                                                     ~15
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.42 ms | 1395 KiB | 15 Q