3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(trim(implode(',', array_merge(explode(',', null), array('1', '2'))), ','));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1rmpK
function name:  (null)
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'trim'
          2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C'
          4        INIT_FCALL                                               'array_merge'
          5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%2C'
          7        SEND_VAL                                                 null
          8        DO_ICALL                                         $0      
          9        SEND_VAR                                                 $0
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                         $1      
         12        SEND_VAR                                                 $1
         13        DO_ICALL                                         $2      
         14        SEND_VAR                                                 $2
         15        SEND_VAL                                                 '%2C'
         16        DO_ICALL                                         $3      
         17        SEND_VAR                                                 $3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.87 ms | 1394 KiB | 23 Q