3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = '19:00'; $endTime = '8:00'; if (!preg_match("~^(?|(2)\K[0-3]|([01]?)\K\d):[0-5]\d$~", $startTime, $start) || !preg_match("~^(?|(2)\K[0-3]|([01]?)\K\d):[0-5]\d$~", $endTime, $end) || (int)$start[1] . $start[0] > (int)$end[1] . $end[0]) { // var_export($start); echo "\nTime Error\n"; // var_export(((int)$start[1] . $start[0]) . ' versus ' . ((int)$end[1] . $end[0])); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 29
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
Branch analysis from position: 27
Branch analysis from position: 16
filename:       /in/f3a8gu
function name:  (null)
number of ops:  30
compiled vars:  !0 = $startTime, !1 = $endTime, !2 = $start, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '19%3A00'
    3     1        ASSIGN                                                   !1, '8%3A00'
    5     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%7E%5E%28%3F%7C%282%29%5CK%5B0-3%5D%7C%28%5B01%5D%3F%29%5CK%5Cd%29%3A%5B0-5%5D%5Cd%24%7E'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $6      
          7        BOOL_NOT                                         ~7      $6
          8      > JMPNZ_EX                                         ~7      ~7, ->16
    6     9    >   INIT_FCALL                                               'preg_match'
         10        SEND_VAL                                                 '%7E%5E%28%3F%7C%282%29%5CK%5B0-3%5D%7C%28%5B01%5D%3F%29%5CK%5Cd%29%3A%5B0-5%5D%5Cd%24%7E'
         11        SEND_VAR                                                 !1
         12        SEND_REF                                                 !3
         13        DO_ICALL                                         $8      
         14        BOOL_NOT                                         ~9      $8
         15        BOOL                                             ~7      ~9
         16    > > JMPNZ_EX                                         ~7      ~7, ->27
    7    17    >   FETCH_DIM_R                                      ~10     !2, 1
         18        CAST                                          4  ~11     ~10
         19        FETCH_DIM_R                                      ~12     !2, 0
         20        CONCAT                                           ~13     ~11, ~12
         21        FETCH_DIM_R                                      ~14     !3, 1
         22        CAST                                          4  ~15     ~14
         23        FETCH_DIM_R                                      ~16     !3, 0
         24        CONCAT                                           ~17     ~15, ~16
         25        IS_SMALLER                                       ~18     ~17, ~13
         26        BOOL                                             ~7      ~18
         27    > > JMPZ                                                     ~7, ->29
    9    28    >   ECHO                                                     '%0ATime+Error%0A'
   11    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.86 ms | 1396 KiB | 15 Q