3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tomorrowMidnight = mktime(0, 0, 0, date('n'), date('j') + 1); var_dump([ strtotime("now"), strtotime($tomorrowMidnight), ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GMjed
function name:  (null)
number of ops:  27
compiled vars:  !0 = $tomorrowMidnight
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'mktime'
          1        SEND_VAL                                                 0
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'n'
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'j'
         10        DO_ICALL                                         $2      
         11        ADD                                              ~3      $2, 1
         12        SEND_VAL                                                 ~3
         13        DO_ICALL                                         $4      
         14        ASSIGN                                                   !0, $4
    4    15        INIT_FCALL                                               'var_dump'
    5    16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 'now'
         18        DO_ICALL                                         $6      
         19        INIT_ARRAY                                       ~7      $6
    6    20        INIT_FCALL                                               'strtotime'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $8      
         23        ADD_ARRAY_ELEMENT                                ~7      $8
         24        SEND_VAL                                                 ~7
         25        DO_ICALL                                                 
    7    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
193.41 ms | 1395 KiB | 21 Q