3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_left = '6h : 27m : 45s'; $time_right = '6h : 27m : 5s'; $parts_left = explode(":", $time_left); $parts_right = explode(":", $time_right); $left = intval($parts_left[0]).":".intval($parts_left[1]).":".intval($parts_left[2]); $right = intval($parts_right[0]).":".intval($parts_right[1]).":".intval($parts_right[2]); if (strtotime($left) > strtotime($right)) { echo "Timer to the left is bigger"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 43
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
filename:       /in/uUQVh
function name:  (null)
number of ops:  44
compiled vars:  !0 = $time_left, !1 = $time_right, !2 = $parts_left, !3 = $parts_right, !4 = $left, !5 = $right
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '6h+%3A+27m+%3A+45s'
    4     1        ASSIGN                                                   !1, '6h+%3A+27m+%3A+5s'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%3A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !2, $8
    6     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%3A'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
    8    12        FETCH_DIM_R                                      ~12     !2, 0
         13        CAST                                          4  ~13     ~12
         14        CONCAT                                           ~14     ~13, '%3A'
         15        FETCH_DIM_R                                      ~15     !2, 1
         16        CAST                                          4  ~16     ~15
         17        CONCAT                                           ~17     ~14, ~16
         18        CONCAT                                           ~18     ~17, '%3A'
         19        FETCH_DIM_R                                      ~19     !2, 2
         20        CAST                                          4  ~20     ~19
         21        CONCAT                                           ~21     ~18, ~20
         22        ASSIGN                                                   !4, ~21
    9    23        FETCH_DIM_R                                      ~23     !3, 0
         24        CAST                                          4  ~24     ~23
         25        CONCAT                                           ~25     ~24, '%3A'
         26        FETCH_DIM_R                                      ~26     !3, 1
         27        CAST                                          4  ~27     ~26
         28        CONCAT                                           ~28     ~25, ~27
         29        CONCAT                                           ~29     ~28, '%3A'
         30        FETCH_DIM_R                                      ~30     !3, 2
         31        CAST                                          4  ~31     ~30
         32        CONCAT                                           ~32     ~29, ~31
         33        ASSIGN                                                   !5, ~32
   11    34        INIT_FCALL                                               'strtotime'
         35        SEND_VAR                                                 !4
         36        DO_ICALL                                         $34     
         37        INIT_FCALL                                               'strtotime'
         38        SEND_VAR                                                 !5
         39        DO_ICALL                                         $35     
         40        IS_SMALLER                                               $35, $34
         41      > JMPZ                                                     ~36, ->43
   12    42    >   ECHO                                                     'Timer+to+the+left+is+bigger'
   13    43    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.02 ms | 1011 KiB | 15 Q