3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'The value of the field ā€˜%sā€™ ' . 'must match the pattern ā€˜%sā€™.'; $field = 'field'; $pattern = '@^[a-z0-9_]+$@i'; echo sprintf($text, $field, $pattern);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AEECI
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text, !1 = $field, !2 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'The+value+of+the+field+%E2%80%98%25s%E2%80%99+must+match+the+pattern+%E2%80%98%25s%E2%80%99.'
    5     1        ASSIGN                                                   !1, 'field'
    6     2        ASSIGN                                                   !2, '%40%5E%5Ba-z0-9_%5D%2B%24%40i'
    8     3        INIT_FCALL                                               'sprintf'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.46 ms | 1394 KiB | 15 Q