3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testString = '2.1.0'; preg_match('/(\d\.?)+/', $testString, $testResult1); preg_match('/\d.\d.\d/', $testString, $testResult2); var_dump($testResult1); var_dump($testResult2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kWDmD
function name:  (null)
number of ops:  18
compiled vars:  !0 = $testString, !1 = $testResult1, !2 = $testResult2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2.1.0'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F%28%5Cd%5C.%3F%29%2B%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5Cd.%5Cd.%5Cd%2F'
          8        SEND_VAR                                                 !0
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.38 ms | 1394 KiB | 17 Q