3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "[Code][WST-2587] hello world"; print($value); $trimPattern = '/^[”’"\'(<]*@?(.+?)[.”’"\'\,!?:;)>]*$/'; print($trimPattern); $projects = array('IC', 'WST'); print($projects); $calloutPattern = "/^(?:" . implode('|', $projects) . ")-[0-9]+$/"; print($calloutPattern); $words = preg_split('/(\s+)/', $value); print($words); $callouts = array(); print($callouts);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fI73j
function name:  (null)
number of ops:  23
compiled vars:  !0 = $value, !1 = $trimPattern, !2 = $projects, !3 = $calloutPattern, !4 = $words, !5 = $callouts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%5BCode%5D%5BWST-2587%5D+hello+world'
    5     1        ECHO                                                     !0
    6     2        ASSIGN                                                   !1, '%2F%5E%5B%E2%80%9D%E2%80%99%22%27%28%3C%5D%2A%40%3F%28.%2B%3F%29%5B.%E2%80%9D%E2%80%99%22%27%5C%2C%21%3F%3A%3B%29%3E%5D%2A%24%2F'
    7     3        ECHO                                                     !1
    8     4        ASSIGN                                                   !2, <array>
    9     5        ECHO                                                     !2
   10     6        INIT_FCALL                                               'implode'
          7        SEND_VAL                                                 '%7C'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        CONCAT                                           ~10     '%2F%5E%28%3F%3A', $9
         11        CONCAT                                           ~11     ~10, '%29-%5B0-9%5D%2B%24%2F'
         12        ASSIGN                                                   !3, ~11
   11    13        ECHO                                                     !3
   12    14        INIT_FCALL                                               'preg_split'
         15        SEND_VAL                                                 '%2F%28%5Cs%2B%29%2F'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !4, $13
   13    19        ECHO                                                     !4
   14    20        ASSIGN                                                   !5, <array>
   15    21        ECHO                                                     !5
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1395 KiB | 17 Q