3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "dark gray squirrel"; $r = "!s.+!"; $r2 = "{s.+}"; $r3 = "~s.+~"; preg_match($r,$test,$matches); var_dump($matches); preg_match($r2,$test,$matches); var_dump($matches); preg_match($r3,$test,$matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h3kbf
function name:  (null)
number of ops:  29
compiled vars:  !0 = $test, !1 = $r, !2 = $r2, !3 = $r3, !4 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'dark+gray+squirrel'
    5     1        ASSIGN                                                   !1, '%21s.%2B%21'
    7     2        ASSIGN                                                   !2, '%7Bs.%2B%7D'
    9     3        ASSIGN                                                   !3, '%7Es.%2B%7E'
   11     4        INIT_FCALL                                               'preg_match'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        SEND_REF                                                 !4
          8        DO_ICALL                                                 
   12     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !4
         11        DO_ICALL                                                 
   14    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAR                                                 !2
         14        SEND_VAR                                                 !0
         15        SEND_REF                                                 !4
         16        DO_ICALL                                                 
   15    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
   17    20        INIT_FCALL                                               'preg_match'
         21        SEND_VAR                                                 !3
         22        SEND_VAR                                                 !0
         23        SEND_REF                                                 !4
         24        DO_ICALL                                                 
   18    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !4
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.33 ms | 1438 KiB | 15 Q