3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Trying to output 18000 $time = 12000; // milli-seconds $time = floor($time/1000); // get it into even seconds $remainder = $time % 6; $time = ($time - $remainder + 6)*1000; echo $time;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Ueuk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $time, !1 = $remainder
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 12000
    6     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~3      !0, 1000
          3        SEND_VAL                                                 ~3
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !0, $4
    7     6        MOD                                              ~6      !0, 6
          7        ASSIGN                                                   !1, ~6
    8     8        SUB                                              ~8      !0, !1
          9        ADD                                              ~9      ~8, 6
         10        MUL                                              ~10     ~9, 1000
         11        ASSIGN                                                   !0, ~10
   10    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.72 ms | 1394 KiB | 15 Q