3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "// File : /okcontent/js/Oryx/Cookies.js"; $str2 = "// File : /okcontent/js/twitter.js"; $str3 = "// File : /okcontent/js/Oryx/pups/Cookies.js"; $m = array(); $m2 = array(); $m3 = array(); $regex = preg_match("#File : /okcontent/js/(?:((.*?))/)?(.*?)\.js#si", $str, $m); $regex = preg_match("#File : /okcontent/js/(?:((.*?))/)?(.*?)\.js#si", $str2, $m2); $regex = preg_match("#File : /okcontent/js/(?:((.*?))/)?(.*?)\.js#si", $str3, $m3); var_dump($m); var_dump($m2); var_dump($m3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/57WSu
function name:  (null)
number of ops:  34
compiled vars:  !0 = $str, !1 = $str2, !2 = $str3, !3 = $m, !4 = $m2, !5 = $m3, !6 = $regex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2F%2F+File+%3A+%2Fokcontent%2Fjs%2FOryx%2FCookies.js'
    3     1        ASSIGN                                                   !1, '%2F%2F+File+%3A+%2Fokcontent%2Fjs%2Ftwitter.js'
    4     2        ASSIGN                                                   !2, '%2F%2F+File+%3A+%2Fokcontent%2Fjs%2FOryx%2Fpups%2FCookies.js'
    6     3        ASSIGN                                                   !3, <array>
    7     4        ASSIGN                                                   !4, <array>
    8     5        ASSIGN                                                   !5, <array>
   10     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%23File+%3A+%2Fokcontent%2Fjs%2F%28%3F%3A%28%28.%2A%3F%29%29%2F%29%3F%28.%2A%3F%29%5C.js%23si'
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !3
         10        DO_ICALL                                         $13     
         11        ASSIGN                                                   !6, $13
   11    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAL                                                 '%23File+%3A+%2Fokcontent%2Fjs%2F%28%3F%3A%28%28.%2A%3F%29%29%2F%29%3F%28.%2A%3F%29%5C.js%23si'
         14        SEND_VAR                                                 !1
         15        SEND_REF                                                 !4
         16        DO_ICALL                                         $15     
         17        ASSIGN                                                   !6, $15
   12    18        INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%23File+%3A+%2Fokcontent%2Fjs%2F%28%3F%3A%28%28.%2A%3F%29%29%2F%29%3F%28.%2A%3F%29%5C.js%23si'
         20        SEND_VAR                                                 !2
         21        SEND_REF                                                 !5
         22        DO_ICALL                                         $17     
         23        ASSIGN                                                   !6, $17
   14    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
   15    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !4
         29        DO_ICALL                                                 
   16    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !5
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.47 ms | 1388 KiB | 17 Q