3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discount = 33; $sale_end = '2014-01-30 00:00:00'; $sale_end = substr($sale_end, 0, 10); $fromDate = date('F d', strtotime($sale_end)); echo $fromDate; echo sprintf('%d%% OFF Ends %d', $discount, $sale_end);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vpXHP
function name:  (null)
number of ops:  24
compiled vars:  !0 = $discount, !1 = $sale_end, !2 = $fromDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 33
    3     1        ASSIGN                                                   !1, '2014-01-30+00%3A00%3A00'
    4     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 10
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    6     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'F+d'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
    8    16        ECHO                                                     !2
   12    17        INIT_FCALL                                               'sprintf'
         18        SEND_VAL                                                 '%25d%25%25+OFF+Ends+%25d'
         19        SEND_VAR                                                 !0
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                         $10     
         22        ECHO                                                     $10
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.12 ms | 1395 KiB | 21 Q