3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discount = 33; $sale_end = ''; $date = new DateTime($sale_end); echo sprintf('%d%% OFF Ends %s', $discount, $date->format('F d'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2jYEX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $discount, !1 = $sale_end, !2 = $date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 33
    3     1        ASSIGN                                                   !1, ''
    4     2        NEW                                              $5      'DateTime'
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !2, $5
    5     6        INIT_FCALL                                               'sprintf'
          7        SEND_VAL                                                 '%25d%25%25+OFF+Ends+%25s'
          8        SEND_VAR                                                 !0
          9        INIT_METHOD_CALL                                         !2, 'format'
         10        SEND_VAL_EX                                              'F+d'
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        ECHO                                                     $9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1394 KiB | 15 Q