3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Number of days in current month: ' . date('t') . "\n"; echo 'Number of days in February this year: ' . date('t', strtotime(date('Y') . '-02-01'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vPS0R
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 't'
          2        DO_ICALL                                         $0      
          3        CONCAT                                           ~1      'Number+of+days+in+current+month%3A+', $0
          4        CONCAT                                           ~2      ~1, '%0A'
          5        ECHO                                                     ~2
    4     6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 't'
          8        INIT_FCALL                                               'strtotime'
          9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y'
         11        DO_ICALL                                         $3      
         12        CONCAT                                           ~4      $3, '-02-01'
         13        SEND_VAL                                                 ~4
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_ICALL                                         $6      
         17        CONCAT                                           ~7      'Number+of+days+in+February+this+year%3A+', $6
         18        ECHO                                                     ~7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.38 ms | 1000 KiB | 15 Q