3v4l.org

run code in 500+ PHP versions simultaneously
<?php $seller = [ 'intent' => 'CAPTURE', 'purchase_units' => [[ // note the nested array 'reference_id' => 'ABC123', 'amount' => [ 'currency_code' => 'USD', 'value' => 100.00 ], ]], // and here too 'application_context' => [ 'return_url' => 'https://example.com/return', 'cancel_url' => 'https://example.com/exit', ], ]; echo json_encode($seller, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZdqcR
function name:  (null)
number of ops:  7
compiled vars:  !0 = $seller
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   18     1        INIT_FCALL                                                   'json_encode'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     192
          4        DO_ICALL                                             $2      
          5        ECHO                                                         $2
          6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127 ms | 477 KiB | 8 Q