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/', '', $policy);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6eK8I
function name:  (null)
number of ops:  10
compiled vars:  !0 = $policy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%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%24key%22%2C+%22233326%22%5D%2C+%7B%22acl%22%3A+%22public-read%22%7D%2C+%5B%22starts-with%22%2C+%22%24Filename%22%2C+%22%22%5D%5D%7D'
    7     1        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    9     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2F%5Cs%5Cs%2B%7C%5Cf%7C%5Cn%7C%5Cr%7C%5Ct%2F'
          5        SEND_VAL                                                 ''
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.6 ms | 1394 KiB | 15 Q