3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo implode(',',array_filter(array(trim(""),trim(""))))."\n"; echo implode(',',array_filter(array(trim("a"),trim(""))))."\n"; echo implode(',',array_filter(array(trim(""),trim("b"))))."\n"; echo implode(',',array_filter(array(trim("a"),trim("b"))))."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0kfS
function name:  (null)
number of ops:  69
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'implode'
          1        SEND_VAL                                                 '%2C'
          2        INIT_FCALL                                               'array_filter'
          3        INIT_FCALL                                               'trim'
          4        SEND_VAL                                                 ''
          5        DO_ICALL                                         $0      
          6        INIT_ARRAY                                       ~1      $0
          7        INIT_FCALL                                               'trim'
          8        SEND_VAL                                                 ''
          9        DO_ICALL                                         $2      
         10        ADD_ARRAY_ELEMENT                                ~1      $2
         11        SEND_VAL                                                 ~1
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
         14        DO_ICALL                                         $4      
         15        CONCAT                                           ~5      $4, '%0A'
         16        ECHO                                                     ~5
    3    17        INIT_FCALL                                               'implode'
         18        SEND_VAL                                                 '%2C'
         19        INIT_FCALL                                               'array_filter'
         20        INIT_FCALL                                               'trim'
         21        SEND_VAL                                                 'a'
         22        DO_ICALL                                         $6      
         23        INIT_ARRAY                                       ~7      $6
         24        INIT_FCALL                                               'trim'
         25        SEND_VAL                                                 ''
         26        DO_ICALL                                         $8      
         27        ADD_ARRAY_ELEMENT                                ~7      $8
         28        SEND_VAL                                                 ~7
         29        DO_ICALL                                         $9      
         30        SEND_VAR                                                 $9
         31        DO_ICALL                                         $10     
         32        CONCAT                                           ~11     $10, '%0A'
         33        ECHO                                                     ~11
    4    34        INIT_FCALL                                               'implode'
         35        SEND_VAL                                                 '%2C'
         36        INIT_FCALL                                               'array_filter'
         37        INIT_FCALL                                               'trim'
         38        SEND_VAL                                                 ''
         39        DO_ICALL                                         $12     
         40        INIT_ARRAY                                       ~13     $12
         41        INIT_FCALL                                               'trim'
         42        SEND_VAL                                                 'b'
         43        DO_ICALL                                         $14     
         44        ADD_ARRAY_ELEMENT                                ~13     $14
         45        SEND_VAL                                                 ~13
         46        DO_ICALL                                         $15     
         47        SEND_VAR                                                 $15
         48        DO_ICALL                                         $16     
         49        CONCAT                                           ~17     $16, '%0A'
         50        ECHO                                                     ~17
    5    51        INIT_FCALL                                               'implode'
         52        SEND_VAL                                                 '%2C'
         53        INIT_FCALL                                               'array_filter'
         54        INIT_FCALL                                               'trim'
         55        SEND_VAL                                                 'a'
         56        DO_ICALL                                         $18     
         57        INIT_ARRAY                                       ~19     $18
         58        INIT_FCALL                                               'trim'
         59        SEND_VAL                                                 'b'
         60        DO_ICALL                                         $20     
         61        ADD_ARRAY_ELEMENT                                ~19     $20
         62        SEND_VAL                                                 ~19
         63        DO_ICALL                                         $21     
         64        SEND_VAR                                                 $21
         65        DO_ICALL                                         $22     
         66        CONCAT                                           ~23     $22, '%0A'
         67        ECHO                                                     ~23
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.9 ms | 1400 KiB | 19 Q