3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num = 5; $location = 'tree'; $format = 'The %2$s contains %1$d monkeys. That\'s a nice %2$s full of %1$d monkeys.'; echo sprintf($format, $num, $location); ?>
based on N6bfH
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IvaiZ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $num, !1 = $location, !2 = $format
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, 5
   4     1        ASSIGN                                                   !1, 'tree'
   6     2        ASSIGN                                                   !2, 'The+%252%24s+contains+%251%24d+monkeys.%0A+++++++++++That%27s+a+nice+%252%24s+full+of+%251%24d+monkeys.'
   8     3        INIT_FCALL                                               'sprintf'
         4        SEND_VAR                                                 !2
         5        SEND_VAR                                                 !0
         6        SEND_VAR                                                 !1
         7        DO_ICALL                                         $6      
         8        ECHO                                                     $6
   9     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0