3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s1 = "a"; $s2 = "b"; $s3 = null; $s = implode(", ", array($s1, $s2, $s3)); echo trim($s, " ,") ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qp6je
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s1, !1 = $s2, !2 = $s3, !3 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    3     1        ASSIGN                                                   !1, 'b'
    4     2        ASSIGN                                                   !2, null
    6     3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 '%2C+'
          5        INIT_ARRAY                                       ~7      !0
          6        ADD_ARRAY_ELEMENT                                ~7      !1
          7        ADD_ARRAY_ELEMENT                                ~7      !2
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !3, $8
    7    11        INIT_FCALL                                               'trim'
         12        SEND_VAR                                                 !3
         13        SEND_VAL                                                 '+%2C'
         14        DO_ICALL                                         $10     
         15        ECHO                                                     $10
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 935 KiB | 18 Q