3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = " total used free shared buffers cached\nMem: 494 383 111 0 29 200\n-/+ buffers/cache: 153 341\nSwap: 255 0 255"; preg_match("/Mem:\s+(?P<total>\d+)/", $c ,$r); print_r($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dvoAf
function name:  (null)
number of ops:  10
compiled vars:  !0 = $c, !1 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '+++++++++++++total+++++++used+++++++free+++++shared++++buffers+++++cached%0AMem%3A+++++++++++494++++++++383++++++++111++++++++++0+++++++++29++++++++200%0A-%2F%2B+buffers%2Fcache%3A++++++++153++++++++341%0ASwap%3A++++++++++255++++++++++0++++++++255'
    4     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2FMem%3A%5Cs%2B%28%3FP%3Ctotal%3E%5Cd%2B%29%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    6     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.77 ms | 1394 KiB | 17 Q