3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Hello %s this is a %s."; $valueA = 'World'; $valueB = 'test'; echo sprintf( $text, $valueA, $valueB );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RucvK
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $valueA, !2 = $valueB
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+%25s+this+is+a+%25s.'
    5     1        ASSIGN                                                   !1, 'World'
    6     2        ASSIGN                                                   !2, 'test'
    8     3        INIT_FCALL                                               'sprintf'
    9     4        SEND_VAR                                                 !0
   10     5        SEND_VAR                                                 !1
   11     6        SEND_VAR                                                 !2
    8     7        DO_ICALL                                         $6      
   11     8        ECHO                                                     $6
   12     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.85 ms | 996 KiB | 14 Q