3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTime = '19:00'; $endTime = '8:00'; if (!preg_match("~^(?:2[0-3]|[01]?\d):[0-5]\d$~", $startTime) || !preg_match("~^(?:2[0-3]|[01]?\d):[0-5]\d$~", $endTime) || str_replace(':', '.', $startTime) > str_replace(':', '.', $endTime)) { echo "\nTime Error\n"; // var_export(str_replace(':', '.', $startTime) . ' versus ' . str_replace(':', '.', $endTime)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 15, Position 2 = 27
Branch analysis from position: 15
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: 14
filename:       /in/BhVdH
function name:  (null)
number of ops:  30
compiled vars:  !0 = $startTime, !1 = $endTime
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%3A2%5B0-3%5D%7C%5B01%5D%3F%5Cd%29%3A%5B0-5%5D%5Cd%24%7E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        BOOL_NOT                                         ~5      $4
          7      > JMPNZ_EX                                         ~5      ~5, ->14
    6     8    >   INIT_FCALL                                               'preg_match'
          9        SEND_VAL                                                 '%7E%5E%28%3F%3A2%5B0-3%5D%7C%5B01%5D%3F%5Cd%29%3A%5B0-5%5D%5Cd%24%7E'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        BOOL_NOT                                         ~7      $6
         13        BOOL                                             ~5      ~7
         14    > > JMPNZ_EX                                         ~5      ~5, ->27
    7    15    >   INIT_FCALL                                               'str_replace'
         16        SEND_VAL                                                 '%3A'
         17        SEND_VAL                                                 '.'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $8      
         20        INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 '%3A'
         22        SEND_VAL                                                 '.'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $9      
         25        IS_SMALLER                                       ~10     $9, $8
         26        BOOL                                             ~5      ~10
         27    > > JMPZ                                                     ~5, ->29
    8    28    >   ECHO                                                     '%0ATime+Error%0A'
   10    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.04 ms | 1401 KiB | 17 Q