3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1 = "Preved kagdila? segodnya v 12:30"; $str2 = "Preved 2132944321"; $str3 = "123-343-123 spice 2934-439-944 it sk"; $pattern = '(([1-9]+)([0-9-]{6,}))'; var_dump(preg_match($pattern, $str1)); var_dump(preg_match($pattern, $str2)); var_dump(preg_match($pattern, $str3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UGLId
function name:  (null)
number of ops:  26
compiled vars:  !0 = $str1, !1 = $str2, !2 = $str3, !3 = $pattern
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Preved+kagdila%3F+segodnya+v+12%3A30'
    4     1        ASSIGN                                                   !1, 'Preved+2132944321'
    5     2        ASSIGN                                                   !2, '123-343-123+spice+2934-439-944+it+sk'
    7     3        ASSIGN                                                   !3, '%28%28%5B1-9%5D%2B%29%28%5B0-9-%5D%7B6%2C%7D%29%29'
    9     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'preg_match'
          6        SEND_VAR                                                 !3
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $8      
          9        SEND_VAR                                                 $8
         10        DO_ICALL                                                 
   10    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'preg_match'
         13        SEND_VAR                                                 !3
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        SEND_VAR                                                 $10
         17        DO_ICALL                                                 
   11    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'preg_match'
         20        SEND_VAR                                                 !3
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $12     
         23        SEND_VAR                                                 $12
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.28 ms | 1395 KiB | 17 Q