3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '3'; $team = $a ?? '1, 2'; $terms = explode(',', $team); print_r($terms); $placeholders = rtrim(str_repeat('?, ', count($terms)), ', '); echo $placeholders;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/REqPc
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $team, !2 = $terms, !3 = $placeholders
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '3'
    3     1        COALESCE                                         ~5      !0
          2        QM_ASSIGN                                        ~5      '1%2C+2'
          3        ASSIGN                                                   !1, ~5
    4     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%2C'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
    6    12        INIT_FCALL                                               'rtrim'
         13        INIT_FCALL                                               'str_repeat'
         14        SEND_VAL                                                 '%3F%2C+'
         15        COUNT                                            ~10     !2
         16        SEND_VAL                                                 ~10
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        SEND_VAL                                                 '%2C+'
         20        DO_ICALL                                         $12     
         21        ASSIGN                                                   !3, $12
    7    22        ECHO                                                     !3
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.93 ms | 1399 KiB | 21 Q