3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1400 KiB | 21 Q