3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo preg_match("/[0-9]*(\.|[0-9]{1})[0-9]{0,2}/","00.00"); $regexp = '[0-9]*(\.|[0-9]{1})[0-9]{0,2}'; echo _match($regexp, array('00.00','salkjfdsklfj')); function _match($regexp,$subject_array) { $match = 'taco'; foreach ($subject_array as $subject) { if (!preg_match("/".$regexp."/",$subject)) { $match = false; } } return $match; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EBpfm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $regexp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '%5B0-9%5D%2A%28%5C.%7C%5B0-9%5D%7B1%7D%29%5B0-9%5D%7B0%2C2%7D'
    8     1        INIT_FCALL_BY_NAME                                       '_match'
          2        SEND_VAR_EX                                              !0
          3        SEND_VAL_EX                                              <array>
          4        DO_FCALL                                      0  $2      
          5        ECHO                                                     $2
   21     6      > RETURN                                                   1

Function _match:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/EBpfm
function name:  _match
number of ops:  18
compiled vars:  !0 = $regexp, !1 = $subject_array, !2 = $match, !3 = $subject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   13     2        ASSIGN                                                   !2, 'taco'
   14     3      > FE_RESET_R                                       $5      !1, ->15
          4    > > FE_FETCH_R                                               $5, !3, ->15
   15     5    >   INIT_FCALL                                               'preg_match'
          6        CONCAT                                           ~6      '%2F', !0
          7        CONCAT                                           ~7      ~6, '%2F'
          8        SEND_VAL                                                 ~7
          9        SEND_VAR                                                 !3
         10        DO_ICALL                                         $8      
         11        BOOL_NOT                                         ~9      $8
         12      > JMPZ                                                     ~9, ->14
   16    13    >   ASSIGN                                                   !2, <false>
   14    14    > > JMP                                                      ->4
         15    >   FE_FREE                                                  $5
   20    16      > RETURN                                                   !2
   21    17*     > RETURN                                                   null

End of function _match

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.89 ms | 1396 KiB | 15 Q