3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=2.5; printf("%s",$a); // prints out 2.5 echo $a; // prints out 2.5 setlocale(LC_ALL,"de_DE"); printf("%s",$a); // prints out 2,5 echo $a; // prints out 2,5
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PGfOP
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2.5
    4     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 '%25s'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5        ECHO                                                     !0
    6     6        INIT_FCALL                                               'setlocale'
          7        SEND_VAL                                                 6
          8        SEND_VAL                                                 'de_DE'
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'printf'
         11        SEND_VAL                                                 '%25s'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    8    14        ECHO                                                     !0
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.32 ms | 1394 KiB | 17 Q