3v4l.org

run code in 300+ PHP versions simultaneously
<?php $template = '<span class="product-price-%s">&euro; %0.2f</span>'; setlocale(LC_ALL, 'nl_NL@euro', 'nl_NL', 'nl'); echo sprintf($template, 'deal', 8.49);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mUC46
function name:  (null)
number of ops:  14
compiled vars:  !0 = $template
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cspan+class%3D%22product-price-%25s%22%3E%26euro%3B+%250.2f%3C%2Fspan%3E'
    4     1        INIT_FCALL                                               'setlocale'
          2        SEND_VAL                                                 6
          3        SEND_VAL                                                 'nl_NL%40euro'
          4        SEND_VAL                                                 'nl_NL'
          5        SEND_VAL                                                 'nl'
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'deal'
         10        SEND_VAL                                                 8.49
         11        DO_ICALL                                         $3      
         12        ECHO                                                     $3
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1394 KiB | 17 Q