3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Prague'); $t = 1414754455; // 31.10.2014 # time() - 24*60*60; // yesterday $t1 = strtotime("actual month", $t); $t2 = strtotime("first day of next month", $t); echo date("d.m.Y", $t) . ": $t\n"; echo date("d.m.Y", $t1) . ": $t1\n"; echo date("d.m.Y", $t2) . ": $t2\n"; echo "DIFF: " . ($t1-$t2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FLEiu
function name:  (null)
number of ops:  45
compiled vars:  !0 = $t, !1 = $t1, !2 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FPrague'
          2        DO_ICALL                                                 
    5     3        ASSIGN                                                   !0, 1414754455
    6     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'actual+month'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    7     9        INIT_FCALL                                               'strtotime'
         10        SEND_VAL                                                 'first+day+of+next+month'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    9    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'd.m.Y'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $9      
         18        ROPE_INIT                                     3  ~11     '%3A+'
         19        ROPE_ADD                                      1  ~11     ~11, !0
         20        ROPE_END                                      2  ~10     ~11, '%0A'
         21        CONCAT                                           ~13     $9, ~10
         22        ECHO                                                     ~13
   10    23        INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'd.m.Y'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                         $14     
         27        ROPE_INIT                                     3  ~16     '%3A+'
         28        ROPE_ADD                                      1  ~16     ~16, !1
         29        ROPE_END                                      2  ~15     ~16, '%0A'
         30        CONCAT                                           ~18     $14, ~15
         31        ECHO                                                     ~18
   11    32        INIT_FCALL                                               'date'
         33        SEND_VAL                                                 'd.m.Y'
         34        SEND_VAR                                                 !2
         35        DO_ICALL                                         $19     
         36        ROPE_INIT                                     3  ~21     '%3A+'
         37        ROPE_ADD                                      1  ~21     ~21, !2
         38        ROPE_END                                      2  ~20     ~21, '%0A'
         39        CONCAT                                           ~23     $19, ~20
         40        ECHO                                                     ~23
   12    41        SUB                                              ~24     !1, !2
         42        CONCAT                                           ~25     'DIFF%3A+', ~24
         43        ECHO                                                     ~25
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.58 ms | 1392 KiB | 19 Q