3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt="Fatti&Storie 5 - Lorem ipsum dolor sit amet [nid:35]"; $end = strripos($txt, ']'); $start =strripos($txt, ':'); $leng = $end-$start; $a=substr($txt, $start, $leng); $b=str_explode($a, ':'); echo $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6UeLq
function name:  (null)
number of ops:  26
compiled vars:  !0 = $txt, !1 = $end, !2 = $start, !3 = $leng, !4 = $a, !5 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Fatti%26Storie+5+-+Lorem+ipsum+dolor+sit+amet+%5Bnid%3A35%5D'
    3     1        INIT_FCALL                                               'strripos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%5D'
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    4     6        INIT_FCALL                                               'strripos'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 '%3A'
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    5    11        SUB                                              ~11     !1, !2
         12        ASSIGN                                                   !3, ~11
    7    13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !2
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !4, $13
    8    19        INIT_FCALL_BY_NAME                                       'str_explode'
         20        SEND_VAR_EX                                              !4
         21        SEND_VAL_EX                                              '%3A'
         22        DO_FCALL                                      0  $15     
         23        ASSIGN                                                   !5, $15
    9    24        ECHO                                                     !5
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1395 KiB | 17 Q