3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discount = 33; $sale_end = ''; $sale_end = substr($sale_end, 0, 10); $fromDate = date('F d', strtotime($sale_end)); echo sprintf('%d%% OFF Ends %s', $discount, $fromDate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D3euV
function name:  (null)
number of ops:  23
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, ''
    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        INIT_FCALL                                               'sprintf'
         17        SEND_VAL                                                 '%25d%25%25+OFF+Ends+%25s'
         18        SEND_VAR                                                 !0
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $10     
         21        ECHO                                                     $10
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1395 KiB | 21 Q