3v4l.org

run code in 300+ PHP versions simultaneously
<?php // {"channel": "#random", "text": "", "username": "StockScraper", "icon_emoji": ":ghost:"} $payload = [ 'channel' => '#random', 'text' => 'Daily Quote Scrapping Done.\n15 Stocks cannot be updated, in which 10 of them were due to timeout request, and 5 of them were because the xml file received does not have the quote record.For details, please check missing.txt in the root directory', 'username' => 'StockScrapper', 'icon_emoji' => ':ghost:' ]; // $payload = 『{"channel":"#random","text":"Daily Quote Scrapping Done after 08:00:01\\nOut of 2000 stocks, 50 stocks' xml cannot be downloaded and 0 seems dead.\\nFor details, please check failedDailyQuote2015-08-05.log under app\/storage\/logs\/","username":"StockScrapper","icon_emoji":":ghost:"}" $payload = json_encode($payload); var_dump($payload); $payload = preg_replace('/\n/', 'n', $payload); var_dump($payload);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tst6t
function name:  (null)
number of ops:  18
compiled vars:  !0 = $payload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
   14     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   15     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5Cn%2F'
         10        SEND_VAL                                                 'n'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
   16    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 939 KiB | 20 Q