3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strDemo = "%s,签到\n签到时间,%s\n贴心提示:%d"; $strMsg = sprintf($strDemo, '2', '3', 3); $strMsg = base64_encode($strMsg); $strRet = '{"msg":' . $strMsg . '}'; echo $strRet; var_dump(json_decode($strRet));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/louiP
function name:  (null)
number of ops:  23
compiled vars:  !0 = $strDemo, !1 = $strMsg, !2 = $strRet
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%25s%2C%E7%AD%BE%E5%88%B0%0A%E7%AD%BE%E5%88%B0%E6%97%B6%E9%97%B4%EF%BC%8C%25s%0A%E8%B4%B4%E5%BF%83%E6%8F%90%E7%A4%BA%3A%25d'
    3     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '2'
          4        SEND_VAL                                                 '3'
          5        SEND_VAL                                                 3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL                                               'base64_encode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        CONCAT                                           ~8      '%7B%22msg%22%3A', !1
         13        CONCAT                                           ~9      ~8, '%7D'
         14        ASSIGN                                                   !2, ~9
    6    15        ECHO                                                     !2
    7    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'json_decode'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $11     
         20        SEND_VAR                                                 $11
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.33 ms | 1395 KiB | 21 Q