3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totalseconds = 5000; $totalminutes = $totalseconds / 60; $totalhours = $totalminutes / 60; $totaldays = $totalhours / 24; $totalweeks = $totaldays / 7; echo "{$totalweeks} weeks, or {$totaldays} days, or {$totalhours} hours, or {$totalhours} hours, or {$totalminutes} minutes";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8uCKJ
function name:  (null)
number of ops:  21
compiled vars:  !0 = $totalseconds, !1 = $totalminutes, !2 = $totalhours, !3 = $totaldays, !4 = $totalweeks
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5000
    5     1        DIV                                              ~6      !0, 60
          2        ASSIGN                                                   !1, ~6
    6     3        DIV                                              ~8      !1, 60
          4        ASSIGN                                                   !2, ~8
    7     5        DIV                                              ~10     !2, 24
          6        ASSIGN                                                   !3, ~10
    8     7        DIV                                              ~12     !3, 7
          8        ASSIGN                                                   !4, ~12
   10     9        ROPE_INIT                                    10  ~15     !4
         10        ROPE_ADD                                      1  ~15     ~15, '+weeks%2C+or+'
         11        ROPE_ADD                                      2  ~15     ~15, !3
         12        ROPE_ADD                                      3  ~15     ~15, '+days%2C+or+'
         13        ROPE_ADD                                      4  ~15     ~15, !2
         14        ROPE_ADD                                      5  ~15     ~15, '+hours%2C+or+'
         15        ROPE_ADD                                      6  ~15     ~15, !2
         16        ROPE_ADD                                      7  ~15     ~15, '+hours%2C+or+'
         17        ROPE_ADD                                      8  ~15     ~15, !1
         18        ROPE_END                                      9  ~14     ~15, '+minutes'
         19        ECHO                                                     ~14
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.06 ms | 1398 KiB | 13 Q