3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allowed = array('<p>', '<b>', '<i>', '<u>'); print_r(sprintf('Allowed HTML tags: %', implode(', ', $allowed))); $array = array('lastname', 'email', 'phone'); $comma_separated = implode(",", $array); echo $comma_separated;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XosGo
function name:  (null)
number of ops:  20
compiled vars:  !0 = $allowed, !1 = $array, !2 = $comma_separated
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'sprintf'
          3        SEND_VAL                                                 'Allowed+HTML+tags%3A+%25'
          4        INIT_FCALL                                               'implode'
          5        SEND_VAL                                                 '%2C+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
    6    12        ASSIGN                                                   !1, <array>
    7    13        INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%2C'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !2, $8
    9    18        ECHO                                                     !2
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1395 KiB | 19 Q