3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = "22/07/2014"; $time1 = "12:05"; $date3 = $date1 . ' ' . $time1; $date4 = strtotime($date3); echo date('Y-m-d H:i:s', $date4); if(time()>$date4) echo 'passed';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/8F8SI
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date1, !1 = $time1, !2 = $date3, !3 = $date4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '22%2F07%2F2014'
    3     1        ASSIGN                                                   !1, '12%3A05'
    4     2        CONCAT                                           ~6      !0, '+'
          3        CONCAT                                           ~7      ~6, !1
          4        ASSIGN                                                   !2, ~7
    5     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !3, $9
    6     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $11     
         13        ECHO                                                     $11
    8    14        INIT_FCALL                                               'time'
         15        DO_ICALL                                         $12     
         16        IS_SMALLER                                               !3, $12
         17      > JMPZ                                                     ~13, ->19
         18    >   ECHO                                                     'passed'
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.54 ms | 1395 KiB | 19 Q