3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.49 ms | 1399 KiB | 17 Q