3v4l.org

run code in 300+ PHP versions simultaneously
<?php assert(date('d',strtotime('last day of april')) == "30"); assert(date('d',strtotime('last Day of april')) == "30"); // will raise warning assert(date('d',strtotime('Last Day of april')) == "30");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AiQ7o
function name:  (null)
number of ops:  40
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSERT_CHECK                                             
          1        INIT_FCALL                                               'assert'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'd'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'last+day+of+april'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        IS_EQUAL                                         ~2      $1, '30'
         10        SEND_VAL                                                 ~2
         11        SEND_VAL                                                 'assert%28date%28%27d%27%2C+strtotime%28%27last+day+of+april%27%29%29+%3D%3D+%2730%27%29'
         12        DO_ICALL                                                 
    3    13        ASSERT_CHECK                                             
         14        INIT_FCALL                                               'assert'
         15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'd'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'last+Day+of+april'
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                         $5      
         22        IS_EQUAL                                         ~6      $5, '30'
         23        SEND_VAL                                                 ~6
         24        SEND_VAL                                                 'assert%28date%28%27d%27%2C+strtotime%28%27last+Day+of+april%27%29%29+%3D%3D+%2730%27%29'
         25        DO_ICALL                                                 
    5    26        ASSERT_CHECK                                             
         27        INIT_FCALL                                               'assert'
         28        INIT_FCALL                                               'date'
         29        SEND_VAL                                                 'd'
         30        INIT_FCALL                                               'strtotime'
         31        SEND_VAL                                                 'Last+Day+of+april'
         32        DO_ICALL                                         $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                         $9      
         35        IS_EQUAL                                         ~10     $9, '30'
         36        SEND_VAL                                                 ~10
         37        SEND_VAL                                                 'assert%28date%28%27d%27%2C+strtotime%28%27Last+Day+of+april%27%29%29+%3D%3D+%2730%27%29'
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1396 KiB | 19 Q