3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numbers = ',,,1,56,32,9,56,566'; $numberToRemove = 56; $removed = str_replace($numberToRemove, '', $numbers); $kaPow = explode(',', $removed); $kaPow = array_filter( $kaPow, 'strlen' ); echo implode(',', $kaPow);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lqjhf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $numbers, !1 = $numberToRemove, !2 = $removed, !3 = $kaPow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2C%2C%2C1%2C56%2C32%2C9%2C56%2C566'
    4     1        ASSIGN                                                   !1, 56
    5     2        INIT_FCALL                                               'str_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
    6     8        INIT_FCALL                                               'explode'
          9        SEND_VAL                                                 '%2C'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    7    13        INIT_FCALL                                               'array_filter'
         14        SEND_VAR                                                 !3
         15        SEND_VAL                                                 'strlen'
         16        DO_ICALL                                         $10     
         17        ASSIGN                                                   !3, $10
    8    18        INIT_FCALL                                               'implode'
         19        SEND_VAL                                                 '%2C'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $12     
         22        ECHO                                                     $12
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.1 ms | 1013 KiB | 17 Q