3v4l.org

run code in 300+ PHP versions simultaneously
<?php $policy = <<<STRING { "expiration": "2013-3-14T23:20:33.000Z", "conditions": [{"bucket": "clientvids_in"}, ["starts-with", "$key", "233326"], {"acl": "public-read"}, ["starts-with", "$Filename", ""]]} STRING; echo $policy . "\n"; echo preg_replace('/\s\s+|\\f|\\n|\\r|\\t|\\v/', '', $policy);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TTXPP
function name:  (null)
number of ops:  15
compiled vars:  !0 = $policy, !1 = $key, !2 = $Filename
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ROPE_INIT                                     5  ~4      '%7B+%22expiration%22%3A+%222013-3-14T23%3A20%3A33.000Z%22%2C+%22conditions%22%3A+%5B%7B%22bucket%22%3A+%22clientvids_in%22%7D%2C+%5B%22starts-with%22%2C+%22'
          1        ROPE_ADD                                      1  ~4      ~4, !1
          2        ROPE_ADD                                      2  ~4      ~4, '%22%2C+%22233326%22%5D%2C+%7B%22acl%22%3A+%22public-read%22%7D%2C+%5B%22starts-with%22%2C+%22'
          3        ROPE_ADD                                      3  ~4      ~4, !2
          4        ROPE_END                                      4  ~3      ~4, '%22%2C+%22%22%5D%5D%7D'
    3     5        ASSIGN                                                   !0, ~3
    7     6        CONCAT                                           ~8      !0, '%0A'
          7        ECHO                                                     ~8
    9     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5Cs%5Cs%2B%7C%5Cf%7C%5Cn%7C%5Cr%7C%5Ct%7C%5Cv%2F'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ECHO                                                     $9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.07 ms | 1394 KiB | 15 Q