3v4l.org

run code in 300+ PHP versions simultaneously
<?php list( $a, $b, $c) = explode( ":", "23:31:13"); $mod = $c % 5; $input = $a . ':' . $b . ':' . (($mod < 3) ? $c - $mod : $c + (5 - $mod)); echo $input;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QlKXW
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $mod, !4 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'explode'
          1        SEND_VAL                                                 '%3A'
          2        SEND_VAL                                                 '23%3A31%3A13'
          3        DO_ICALL                                         $5      
          4        FETCH_LIST_R                                     $6      $5, 0
          5        ASSIGN                                                   !0, $6
          6        FETCH_LIST_R                                     $8      $5, 1
          7        ASSIGN                                                   !1, $8
          8        FETCH_LIST_R                                     $10     $5, 2
          9        ASSIGN                                                   !2, $10
         10        FREE                                                     $5
    4    11        MOD                                              ~12     !2, 5
         12        ASSIGN                                                   !3, ~12
    5    13        CONCAT                                           ~14     !0, '%3A'
         14        CONCAT                                           ~15     ~14, !1
         15        CONCAT                                           ~16     ~15, '%3A'
         16        IS_SMALLER                                               !3, 3
         17      > JMPZ                                                     ~17, ->21
         18    >   SUB                                              ~18     !2, !3
         19        QM_ASSIGN                                        ~19     ~18
         20      > JMP                                                      ->24
         21    >   SUB                                              ~20     5, !3
         22        ADD                                              ~21     !2, ~20
         23        QM_ASSIGN                                        ~19     ~21
         24    >   CONCAT                                           ~22     ~16, ~19
         25        ASSIGN                                                   !4, ~22
    6    26        ECHO                                                     !4
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 940 KiB | 16 Q