3v4l.org

run code in 300+ PHP versions simultaneously
<?php $examples = [ ['https://stackoverflow.com/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', false], ['http://stackoverflow.com/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', false], ['//stackoverflow.com/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', false], ['/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', true], ['/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', true], ['/stackoverflow.com/questions/20248666/in-this-case-which-is-better-in-matching-regular-expression-or-parse-url', true], ]; function is_relative_parse_url($url) { return parse_url($url, PHP_URL_SCHEME) === null && strncmp($url, '//', 2) !== 0; } function is_relative_preg_match_ci($url) { return preg_match('/^(http|https)?:?\/\//i', $url) === 0; } function is_relative_preg_match($url) { return preg_match('/^(http|https)?:?\/\//', $url) === 0; } function is_relative_strpos($url) { return !(strpos($url, 'https://') === 0 || strpos($url, 'http://') === 0 || strpos($url, '//') === 0); } function is_relative_str_starts_with_fallback($url) { if(PHP_MAJOR_VERSION <= 8) { return is_relative_strpos($url); } return !(str_starts_with($url, 'https://') || str_starts_with($url, 'http://') || str_starts_with($url, '//')); } function is_relative_strncmp($url) { return !(strncmp($url, 'https://', 8) || strncmp($url, 'http://', 7) || strncmp($url, '//', 2)); } function is_relative_substr_compare($url) { return !( substr_compare($url, 'https://', 0, 8) === 0 || substr_compare($url, 'http://', 0, 7) === 0 || substr_compare($url, '//', 0, 2) === 0 ); } function is_relative_substr_compare_cs($url) { return !( substr_compare($url, 'https://', 0, 8, true) === 0 || substr_compare($url, 'http://', 0, 7, true) === 0 || substr_compare($url, '//', 0, 2) === 0 ); } function test($name, $test, $examples, $reps = 200000) { $time = microtime(true); for($i = 0; $i < $reps; $i++) { foreach($examples as [$url, $expected]) { if ($test($url) !== $expected) { throw new Exception("Failed test $name with URL $url, expected " . ($expected ? "true": "false")); } } } echo "$name: ", number_format(microtime(true) - $time, 3), "\n"; } test('preg_match', function($url) { return is_relative_preg_match($url); }, $examples); test('preg_match (case insensitive)', function($url) { return is_relative_preg_match_ci($url); }, $examples); test('strpos', function($url) { return is_relative_strpos($url); }, $examples); test('str_starts_with', function($url) { return is_relative_str_starts_with_fallback($url); }, $examples); test('substr_compare (case insensitive)', function($url) { return is_relative_substr_compare($url); }, $examples); test('substr_compare (case sensitive)', function($url) { return is_relative_substr_compare_cs($url); }, $examples); test('parse_url', function($url) { return is_relative_parse_url($url); }, $examples);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  (null)
number of ops:  44
compiled vars:  !0 = $examples
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   73     1        INIT_FCALL                                               'test'
          2        SEND_VAL                                                 'preg_match'
          3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
   74     7        INIT_FCALL                                               'test'
          8        SEND_VAL                                                 'preg_match+%28case+insensitive%29'
          9        DECLARE_LAMBDA_FUNCTION                          ~4      [1]
         10        SEND_VAL                                                 ~4
         11        SEND_VAR                                                 !0
         12        DO_FCALL                                      0          
   75    13        INIT_FCALL                                               'test'
         14        SEND_VAL                                                 'strpos'
         15        DECLARE_LAMBDA_FUNCTION                          ~6      [2]
         16        SEND_VAL                                                 ~6
         17        SEND_VAR                                                 !0
         18        DO_FCALL                                      0          
   76    19        INIT_FCALL                                               'test'
         20        SEND_VAL                                                 'str_starts_with'
         21        DECLARE_LAMBDA_FUNCTION                          ~8      [3]
         22        SEND_VAL                                                 ~8
         23        SEND_VAR                                                 !0
         24        DO_FCALL                                      0          
   77    25        INIT_FCALL                                               'test'
         26        SEND_VAL                                                 'substr_compare+%28case+insensitive%29'
         27        DECLARE_LAMBDA_FUNCTION                          ~10     [4]
         28        SEND_VAL                                                 ~10
         29        SEND_VAR                                                 !0
         30        DO_FCALL                                      0          
   78    31        INIT_FCALL                                               'test'
         32        SEND_VAL                                                 'substr_compare+%28case+sensitive%29'
         33        DECLARE_LAMBDA_FUNCTION                          ~12     [5]
         34        SEND_VAL                                                 ~12
         35        SEND_VAR                                                 !0
         36        DO_FCALL                                      0          
   79    37        INIT_FCALL                                               'test'
         38        SEND_VAL                                                 'parse_url'
         39        DECLARE_LAMBDA_FUNCTION                          ~14     [6]
         40        SEND_VAL                                                 ~14
         41        SEND_VAR                                                 !0
         42        DO_FCALL                                      0          
         43      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   73     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_preg_match'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   74     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_preg_match_ci'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 1

Dynamic Function 2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   75     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_strpos'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 2

Dynamic Function 3
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   76     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_str_starts_with_fallback'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 3

Dynamic Function 4
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   77     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_substr_compare'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 4

Dynamic Function 5
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   78     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_substr_compare_cs'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 5

Dynamic Function 6
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   79     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'is_relative_parse_url'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $1      
          4      > RETURN                                                   $1
          5*     > RETURN                                                   null

End of Dynamic Function 6

Function is_relative_parse_url:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/Dpob1
function name:  is_relative_parse_url
number of ops:  16
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                    2  ~2      $1
          6      > JMPZ_EX                                          ~2      ~2, ->14
          7    >   INIT_FCALL                                               'strncmp'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 '%2F%2F'
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $3      
         12        IS_NOT_IDENTICAL                                 ~4      $3, 0
         13        BOOL                                             ~2      ~4
         14    > > RETURN                                                   ~2
   14    15*     > RETURN                                                   null

End of function is_relative_parse_url

Function is_relative_preg_match_ci:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  is_relative_preg_match_ci
number of ops:  8
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28http%7Chttps%29%3F%3A%3F%5C%2F%5C%2F%2Fi'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        IS_IDENTICAL                                     ~2      $1, 0
          6      > RETURN                                                   ~2
   18     7*     > RETURN                                                   null

End of function is_relative_preg_match_ci

Function is_relative_preg_match:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dpob1
function name:  is_relative_preg_match
number of ops:  8
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV                                             !0      
   21     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%5E%28http%7Chttps%29%3F%3A%3F%5C%2F%5C%2F%2F'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        IS_IDENTICAL                                     ~2      $1, 0
          6      > RETURN                                                   ~2
   22     7*     > RETURN                                                   null

End of function is_relative_preg_match

Function is_relative_strpos:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/Dpob1
function name:  is_relative_strpos
number of ops:  23
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   25     1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'https%3A%2F%2F'
          4        DO_ICALL                                         $1      
          5        IS_IDENTICAL                                     ~2      $1, 0
          6      > JMPNZ_EX                                         ~2      ~2, ->13
   26     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'http%3A%2F%2F'
         10        DO_ICALL                                         $3      
         11        IS_IDENTICAL                                     ~4      $3, 0
         12        BOOL                                             ~2      ~4
         13    > > JMPNZ_EX                                         ~2      ~2, ->20
   27    14    >   INIT_FCALL                                               'strpos'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%2F%2F'
         17        DO_ICALL                                         $5      
         18        IS_IDENTICAL                                     ~6      $5, 0
         19        BOOL                                             ~2      ~6
         20    >   BOOL_NOT                                         ~7      ~2
         21      > RETURN                                                   ~7
   28    22*     > RETURN                                                   null

End of function is_relative_strpos

Function is_relative_str_starts_with_fallback:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 16
filename:       /in/Dpob1
function name:  is_relative_str_starts_with_fallback
number of ops:  25
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   RECV                                             !0      
   31     1      > JMPZ                                                     <true>, ->6
   32     2    >   INIT_FCALL                                               'is_relative_strpos'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $1      
          5      > RETURN                                                   $1
   34     6    >   INIT_FCALL                                               'str_starts_with'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 'https%3A%2F%2F'
          9        DO_ICALL                                         $2      
         10      > JMPNZ_EX                                         ~3      $2, ->16
   35    11    >   INIT_FCALL                                               'str_starts_with'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 'http%3A%2F%2F'
         14        DO_ICALL                                         $4      
         15        BOOL                                             ~3      $4
         16    > > JMPNZ_EX                                         ~3      ~3, ->22
   36    17    >   INIT_FCALL                                               'str_starts_with'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 '%2F%2F'
         20        DO_ICALL                                         $5      
         21        BOOL                                             ~3      $5
         22    >   BOOL_NOT                                         ~6      ~3
         23      > RETURN                                                   ~6
   37    24*     > RETURN                                                   null

End of function is_relative_str_starts_with_fallback

Function is_relative_strncmp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 20
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 13
filename:       /in/Dpob1
function name:  is_relative_strncmp
number of ops:  23
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   RECV                                             !0      
   40     1        INIT_FCALL                                               'strncmp'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'https%3A%2F%2F'
          4        SEND_VAL                                                 8
          5        DO_ICALL                                         $1      
          6      > JMPNZ_EX                                         ~2      $1, ->13
   41     7    >   INIT_FCALL                                               'strncmp'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'http%3A%2F%2F'
         10        SEND_VAL                                                 7
         11        DO_ICALL                                         $3      
         12        BOOL                                             ~2      $3
         13    > > JMPNZ_EX                                         ~2      ~2, ->20
   42    14    >   INIT_FCALL                                               'strncmp'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 '%2F%2F'
         17        SEND_VAL                                                 2
         18        DO_ICALL                                         $4      
         19        BOOL                                             ~2      $4
         20    >   BOOL_NOT                                         ~5      ~2
         21      > RETURN                                                   ~5
   43    22*     > RETURN                                                   null

End of function is_relative_strncmp

Function is_relative_substr_compare:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
Branch analysis from position: 17
filename:       /in/Dpob1
function name:  is_relative_substr_compare
number of ops:  29
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   45     0  E >   RECV                                             !0      
   47     1        INIT_FCALL                                               'substr_compare'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'https%3A%2F%2F'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 8
          6        DO_ICALL                                         $1      
          7        IS_IDENTICAL                                     ~2      $1, 0
          8      > JMPNZ_EX                                         ~2      ~2, ->17
   48     9    >   INIT_FCALL                                               'substr_compare'
         10        SEND_VAR                                                 !0
         11        SEND_VAL                                                 'http%3A%2F%2F'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 7
         14        DO_ICALL                                         $3      
         15        IS_IDENTICAL                                     ~4      $3, 0
         16        BOOL                                             ~2      ~4
         17    > > JMPNZ_EX                                         ~2      ~2, ->26
   49    18    >   INIT_FCALL                                               'substr_compare'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 '%2F%2F'
         21        SEND_VAL                                                 0
         22        SEND_VAL                                                 2
         23        DO_ICALL                                         $5      
         24        IS_IDENTICAL                                     ~6      $5, 0
         25        BOOL                                             ~2      ~6
         26    >   BOOL_NOT                                         ~7      ~2
         27      > RETURN                                                   ~7
   51    28*     > RETURN                                                   null

End of function is_relative_substr_compare

Function is_relative_substr_compare_cs:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 19
filename:       /in/Dpob1
function name:  is_relative_substr_compare_cs
number of ops:  31
compiled vars:  !0 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   53     0  E >   RECV                                             !0      
   55     1        INIT_FCALL                                               'substr_compare'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'https%3A%2F%2F'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 8
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $1      
          8        IS_IDENTICAL                                     ~2      $1, 0
          9      > JMPNZ_EX                                         ~2      ~2, ->19
   56    10    >   INIT_FCALL                                               'substr_compare'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'http%3A%2F%2F'
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 7
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $3      
         17        IS_IDENTICAL                                     ~4      $3, 0
         18        BOOL                                             ~2      ~4
         19    > > JMPNZ_EX                                         ~2      ~2, ->28
   57    20    >   INIT_FCALL                                               'substr_compare'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 '%2F%2F'
         23        SEND_VAL                                                 0
         24        SEND_VAL                                                 2
         25        DO_ICALL                                         $5      
         26        IS_IDENTICAL                                     ~6      $5, 0
         27        BOOL                                             ~2      ~6
         28    >   BOOL_NOT                                         ~7      ~2
         29      > RETURN                                                   ~7
   59    30*     > RETURN                                                   null

End of function is_relative_substr_compare_cs

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 39
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 10
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 37
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 37
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 36
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 31
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 41, Position 2 = 10
Branch analysis from position: 41
Branch analysis from position: 10
Branch analysis from position: 37
filename:       /in/Dpob1
function name:  test
number of ops:  55
compiled vars:  !0 = $name, !1 = $test, !2 = $examples, !3 = $reps, !4 = $time, !5 = $i, !6 = $url, !7 = $expected
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   61     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV_INIT                                        !3      200000
   62     4        INIT_FCALL                                               'microtime'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $8      
          7        ASSIGN                                                   !4, $8
   63     8        ASSIGN                                                   !5, 0
          9      > JMP                                                      ->39
   64    10    > > FE_RESET_R                                       $11     !2, ->37
         11    > > FE_FETCH_R                                               $11, $12, ->37
         12    >   FETCH_LIST_R                                     $13     $12, 0
         13        ASSIGN                                                   !6, $13
         14        FETCH_LIST_R                                     $15     $12, 1
         15        ASSIGN                                                   !7, $15
         16        FREE                                                     $12
   65    17        INIT_DYNAMIC_CALL                                        !1
         18        SEND_VAR_EX                                              !6
         19        DO_FCALL                                      0  $17     
         20        IS_NOT_IDENTICAL                                         !7, $17
         21      > JMPZ                                                     ~18, ->36
   66    22    >   NEW                                              $19     'Exception'
         23        ROPE_INIT                                     5  ~21     'Failed+test+'
         24        ROPE_ADD                                      1  ~21     ~21, !0
         25        ROPE_ADD                                      2  ~21     ~21, '+with+URL+'
         26        ROPE_ADD                             

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.34 ms | 1042 KiB | 35 Q