3v4l.org

run code in 300+ PHP versions simultaneously
<?php $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06-01"))); echo "$LastFridayOfMonth where 'month' is May\n" ; $LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-07-01"))); echo "$LastFridayOfMonth where 'month' is June\n" ; $FirstFridayOfMonth = date('Y-m-d', strtotime("first Friday", strtotime("2013-10-31"))); echo "$LastFridayOfMonth where 'month' is November\n" ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O1OpH
function name:  (null)
number of ops:  46
compiled vars:  !0 = $LastFridayOfMonth, !1 = $FirstFridayOfMonth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'last+Friday'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013-06-01'
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    3    12        NOP                                                      
         13        FAST_CONCAT                                      ~6      !0, '+where+%27month%27+is+May%0A'
         14        ECHO                                                     ~6
    5    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-m-d'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'last+Friday'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 '2013-07-01'
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                         $8      
         24        SEND_VAR                                                 $8
         25        DO_ICALL                                         $9      
         26        ASSIGN                                                   !0, $9
    6    27        NOP                                                      
         28        FAST_CONCAT                                      ~11     !0, '+where+%27month%27+is+June%0A'
         29        ECHO                                                     ~11
    8    30        INIT_FCALL                                               'date'
         31        SEND_VAL                                                 'Y-m-d'
         32        INIT_FCALL                                               'strtotime'
         33        SEND_VAL                                                 'first+Friday'
         34        INIT_FCALL                                               'strtotime'
         35        SEND_VAL                                                 '2013-10-31'
         36        DO_ICALL                                         $12     
         37        SEND_VAR                                                 $12
         38        DO_ICALL                                         $13     
         39        SEND_VAR                                                 $13
         40        DO_ICALL                                         $14     
         41        ASSIGN                                                   !1, $14
    9    42        NOP                                                      
         43        FAST_CONCAT                                      ~16     !0, '+where+%27month%27+is+November%0A'
         44        ECHO                                                     ~16
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.83 ms | 1404 KiB | 17 Q