3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'account_id' => 12345, 'created_at' => '2018-10-31 09:30:00.000000', 'customer_id' => 23456, 'originator' => 'MessageBird', 'is_ported' => true, 'body' => base64_encode("Contents \xF0\x9F\x98\x83"), ]; $json = json_encode($data); var_dump($json);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ToRCG
function name:  (null)
number of ops:  18
compiled vars:  !0 = $data, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~2      12345, 'account_id'
    5     1        ADD_ARRAY_ELEMENT                                ~2      '2018-10-31+09%3A30%3A00.000000', 'created_at'
    6     2        ADD_ARRAY_ELEMENT                                ~2      23456, 'customer_id'
    7     3        ADD_ARRAY_ELEMENT                                ~2      'MessageBird', 'originator'
    4     4        ADD_ARRAY_ELEMENT                                ~2      <true>, 'is_ported'
    9     5        INIT_FCALL                                               'base64_encode'
          6        SEND_VAL                                                 'Contents+%F0%9F%98%83'
          7        DO_ICALL                                         $3      
          8        ADD_ARRAY_ELEMENT                                ~2      $3, 'body'
    3     9        ASSIGN                                                   !0, ~2
   12    10        INIT_FCALL                                               'json_encode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !1, $5
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.41 ms | 1398 KiB | 19 Q