3v4l.org

run code in 300+ PHP versions simultaneously
<?php $returnValue = preg_match('/([0-9]+)USD(.+)/m', 'test test test 123 test 89USD test test 123 test', $matches); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/taKbv
function name:  (null)
number of ops:  10
compiled vars:  !0 = $returnValue, !1 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%28%5B0-9%5D%2B%29USD%28.%2B%29%2Fm'
          2        SEND_VAL                                                 'test%0Atest%0Atest%0A123%0Atest%0A+%0A89USD+test%0Atest%0A123%0Atest'
   12     3        SEND_REF                                                 !1
          4        DO_ICALL                                         $2      
    3     5        ASSIGN                                                   !0, $2
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.49 ms | 1398 KiB | 17 Q