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' => '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/WUdXB
function name:  (null)
number of ops:  17
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        FETCH_CONSTANT                                   ~3      'xF0%5Cx9F%5Cx98%5Cx83'
          6        CONCAT                                           ~4      'Contents+', ~3
          7        ADD_ARRAY_ELEMENT                                ~2      ~4, 'body'
    3     8        ASSIGN                                                   !0, ~2
   12     9        INIT_FCALL                                               'json_encode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.25 ms | 1394 KiB | 17 Q