3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = new \StdClass(); $test = [@$var, @$var]; echo @implode (',', $test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16TL4
function name:  (null)
number of ops:  20
compiled vars:  !0 = $var, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        BEGIN_SILENCE                                    ~5      
          4        FETCH_R                      local               ~6      'var'
          5        END_SILENCE                                              ~5
          6        INIT_ARRAY                                       ~7      ~6
          7        BEGIN_SILENCE                                    ~8      
          8        FETCH_R                      local               ~9      'var'
          9        END_SILENCE                                              ~8
         10        ADD_ARRAY_ELEMENT                                ~7      ~9
         11        ASSIGN                                                   !1, ~7
    6    12        BEGIN_SILENCE                                    ~11     
         13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%2C'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $12     
         17        END_SILENCE                                              ~11
         18        ECHO                                                     $12
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.61 ms | 1394 KiB | 15 Q