3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '[TEXT...ids="1,2,30,55"]'; var_dump(explode(',', substr($s, strpos($s, '"') + 1, -2)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cYg1V
function name:  (null)
number of ops:  19
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5BTEXT...ids%3D%221%2C2%2C30%2C55%22%5D'
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAR                                                 !0
          6        INIT_FCALL                                               'strpos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%22'
          9        DO_ICALL                                         $2      
         10        ADD                                              ~3      $2, 1
         11        SEND_VAL                                                 ~3
         12        SEND_VAL                                                 -2
         13        DO_ICALL                                         $4      
         14        SEND_VAR                                                 $4
         15        DO_ICALL                                         $5      
         16        SEND_VAR                                                 $5
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.15 ms | 1399 KiB | 21 Q