3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a', 'b', 'c', 'idx' => 'kek']; $b = [1, 2, 3]; var_dump(array_merge($a, $b)); var_dump(json_decode('{"a": 34}', true)); var_dump($a['idx'] ?? null); var_dump(openssl_get_cert_locations()); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pe26e
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_merge'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        INIT_FCALL                                               'json_decode'
         11        SEND_VAL                                                 '%7B%22a%22%3A+34%7D'
         12        SEND_VAL                                                 <true>
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
    6    16        INIT_FCALL                                               'var_dump'
         17        FETCH_DIM_IS                                     ~8      !0, 'idx'
         18        COALESCE                                         ~9      ~8
         19        QM_ASSIGN                                        ~9      null
         20        SEND_VAL                                                 ~9
         21        DO_ICALL                                                 
    7    22        INIT_FCALL                                               'var_dump'
         23        INIT_FCALL_BY_NAME                                       'openssl_get_cert_locations'
         24        DO_FCALL                                      0  $11     
         25        SEND_VAR                                                 $11
         26        DO_ICALL                                                 
    8    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.93 ms | 1387 KiB | 19 Q